summaryrefslogtreecommitdiffstats
path: root/source/a/glibc-zoneinfo/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/glibc-zoneinfo/doinst.sh')
-rw-r--r--source/a/glibc-zoneinfo/doinst.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/a/glibc-zoneinfo/doinst.sh b/source/a/glibc-zoneinfo/doinst.sh
index 3c86f65e4..05f1e990b 100644
--- a/source/a/glibc-zoneinfo/doinst.sh
+++ b/source/a/glibc-zoneinfo/doinst.sh
@@ -28,7 +28,7 @@
#
# If we see that the machine's localtime-copied-from symlink is pointing
# to US/Pacific-New, change it to point to US/Pacific instead.
-if [ "$(/bin/ls -l etc/localtime-copied-from | rev | cut -f 1,2 -d / | rev)" = "US/Pacific-New" ]; then
+if [ "$(/bin/ls -l etc/localtime-copied-from 2> /dev/null | rev | cut -f 1,2 -d / | rev)" = "US/Pacific-New" ]; then
( cd etc ; rm -rf localtime-copied-from )
( cd etc ; ln -sf /usr/share/zoneinfo/US/Pacific localtime-copied-from )
fi