packaging: strengthen shell tests 59/17159/2
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 4 Mar 2014 10:55:14 +0000 (11:55 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 5 Mar 2014 09:41:04 +0000 (10:41 +0100)
Change-Id: I180f422ef46c1da44849651d79202b4ac58df00b
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/system-server.spec

index 5bc39f1..f6a68eb 100755 (executable)
@@ -257,7 +257,7 @@ heynotitool set device_keyboard_chgdet
 
 
 systemctl daemon-reload
-if [ $1 == 1 ]; then
+if [ "$1" = "1" ]; then
     systemctl restart system-server.service
     systemctl restart regpmon.service
        systemctl restart zbooting-done.service
@@ -265,7 +265,7 @@ fi
 /sbin/ldconfig
 
 %preun
-if [ $1 == 0 ]; then
+if [ "$1" = "0" ]; then
     systemctl stop system-server.service
     systemctl stop regpmon.service
        systemctl stop zbooting-done.service