Browse Source

Merge pull request #167 from lrinQVQ/master

forces date use the default language for output
lennylxx 7 years ago
parent
commit
882b5968b9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      merge_snippets.sh

+ 4 - 0
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\
@@ -30,6 +32,8 @@ printf "\
 ## +-------------------------------------------------------------------+\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