From: Regina Kleinhappel Date: Sun, 13 Jul 2014 09:43:59 +0000 (+0200) Subject: Force english locale for date command. X-Git-Url: http://git.treefish.org/~alex/broadsync.git/commitdiff_plain/refs/heads/master Force english locale for date command. --- diff --git a/broadsync b/broadsync index 206794b..7f83195 100755 --- a/broadsync +++ b/broadsync @@ -66,7 +66,7 @@ while read syncline; do if [ -f "$statdir/newestdate" ]; then newestdate=$(cat "$statdir/newestdate") - echo "Using newestdate $(date +"%T %B %d %Y" -d @$newestdate)" + echo "Using newestdate $(LANG=en_US date +"%T %B %d %Y" -d @$newestdate)" else newestdate=0 fi @@ -95,7 +95,7 @@ while read syncline; do fi done < <(lftp -p "$syncline_port" \ -u "$syncline_user,$syncline_pass" \ - -e "mirror -v -N \"$(date +"%T %B %d %Y" -d @$newestdate)\" \"$syncline_rdir\" \"$syncline_ldir\"" \ + -e "mirror -v -N \"$(LANG=en_US date +"%T %B %d %Y" -d @$newestdate)\" \"$syncline_rdir\" \"$syncline_ldir\"" \ "$subnet$i") [ -n "$lastfile" ] && newestdate=$(returnnewer "$syncline_ldir/$lastfile" "$newestdate")