]> err.no Git - systemd/commitdiff
Use printf instead of echo
authorMichael Biebl <biebl@debian.org>
Wed, 3 Aug 2011 18:03:01 +0000 (20:03 +0200)
committerTollef Fog Heen <tfheen@err.no>
Wed, 14 Sep 2011 06:38:26 +0000 (08:38 +0200)
echo "\n" is not posix shell compliant.

debian/systemd.postinst

index 73e2a11dedff6bfaa78d5a1acc141eeeac6f52e5..04f78906429898614884149d4093e3b570f2d1bb 100644 (file)
@@ -8,11 +8,11 @@ fi
 
 # Do a one-time migration of the local time setting
 if dpkg --compare-versions "$2" lt "33-1"; then
-    if [ -f /etc/default/rcS ];
+    if [ -f /etc/default/rcS ]; then
         . /etc/default/rcS
     fi
     if [ "$UTC" = "no" ] && [ ! -e /etc/adjtime ]; then
-        echo "0.0 0 0.0\n0\nLOCAL" > /etc/adjtime
+        printf "0.0 0 0.0\n0\nLOCAL" > /etc/adjtime
     fi
 fi