packaging: strengthen shell tests 89/22889/2
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 4 Mar 2014 10:55:14 +0000 (11:55 +0100)
committerJiyoung Yun <jy910.yun@samsung.com>
Fri, 13 Jun 2014 01:33:26 +0000 (18:33 -0700)
Change-Id: I180f422ef46c1da44849651d79202b4ac58df00b
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/deviced.spec

index 231fd10..1a20ed3 100755 (executable)
@@ -253,14 +253,14 @@ heynotitool set device_pci_keyboard_remove
 
 
 systemctl daemon-reload
-if [ $1 == 1 ]; then
+if [ "$1" == "1" ]; then
     systemctl restart deviced.service
     systemctl restart regpmon.service
        systemctl restart zbooting-done.service
 fi
 
 %preun
-if [ $1 == 0 ]; then
+if [ "$1" == "0" ]; then
     systemctl stop deviced.service
     systemctl stop regpmon.service
        systemctl stop zbooting-done.service