always run tar in C locale so that grep works properly

This commit is contained in:
Antoine Beaupré 2008-10-04 18:54:03 +00:00
parent 29bb246122
commit 66da56d2df
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ INSTALLED_CONFIG_TAR="/var/backups/alternc/etc-installed.tar.gz"
# Look for modified configuration files
#
if [ -f "$INSTALLED_CONFIG_TAR" ]; then
CHANGED="`tar -zdf "$INSTALLED_CONFIG_TAR" -C / 2> /dev/null |
CHANGED="`env LANG=C tar -zdf "$INSTALLED_CONFIG_TAR" -C / 2> /dev/null |
grep -v 'Uid differs'|grep -v 'Gid differs' |grep -v 'Mode differs' |
sed -e 's/^\([^:]*\).*/ \1/' | sort -u`"
if [ ! -z "$CHANGED" ]; then