From 66da56d2df5df0332046801ccf6a9851236c32a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Sat, 4 Oct 2008 18:54:03 +0000 Subject: [PATCH] always run tar in C locale so that grep works properly --- install/alternc.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/alternc.install b/install/alternc.install index 60799e8b..48653eeb 100644 --- a/install/alternc.install +++ b/install/alternc.install @@ -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