always run tar in C locale so that grep works properly
This commit is contained in:
parent
29bb246122
commit
66da56d2df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue