Browse Source

more elegant code

lrinQVQ 7 years ago
parent
commit
a1c6b5c4be
1 changed files with 5 additions and 1 deletions
  1. 5 1
      merge_snippets.sh

+ 5 - 1
merge_snippets.sh

@@ -13,6 +13,8 @@ if [ -f $new_hosts_file ]; then
     printf "" > $new_hosts_file
 fi
 
+export LC_ALL="C"
+
 printf "\
 ##  __                                 __                               \r\n\
 ## |__| _____  __ __ ┌─────┐          |  |                  __          \r\n\
@@ -25,11 +27,13 @@ printf "\
 ## +-------------------------  >>d(' _ ')b<<  -------------------------+\r\n\
 ## |                                                                   |\r\n\
 ## |         Project: https://github.com/lennylxx/ipv6-hosts           |\r\n\
-## |         Update : `LC_ALL="C" date    +"%a, %d %b %Y %T %z"`                  |\r\n\
+## |         Update : `date    +"%a, %d %b %Y %T %z"`                  |\r\n\
 ## |                                                                   |\r\n\
 ## +-------------------------------------------------------------------+\r\n\
 " >> $new_hosts_file
 
+unset LC_ALL
+
 printf "\r\n::1 localhost\r\n\r\n" >> $new_hosts_file
 
 cat snippets/??_*.txt >> $new_hosts_file