[docker-io/el6] Revert "testing quoting in spec shell script as per packaging guidelines"

Adam Miller maxamillion at fedoraproject.org
Thu Jun 19 22:02:56 UTC 2014


commit 0ad14f013f9d353f13c74ad7d1dfb9f5634f7039
Author: Adam Miller <admiller at redhat.com>
Date:   Thu Jun 19 16:55:19 2014 -0500

    Revert "testing quoting in spec shell script as per packaging guidelines"
    
    This reverts commit c200f78f0bffe97695b586183a15376359fe7e90.

 docker-io.spec |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/docker-io.spec b/docker-io.spec
index 68fce76..2e0faac 100644
--- a/docker-io.spec
+++ b/docker-io.spec
@@ -138,14 +138,14 @@ exit 0
 
 %preun
 # Only perform these tasks when erasing, not during updates
-if [ $1 -eq 0 ] ; then
-  /sbin/service docker stop >/dev/null 2>&1 || :
+if [ "$1" -eq "0" ] ; then
+  /sbin/service docker stop >/dev/null 2>&1
   /sbin/chkconfig --del docker
 fi
 
 %postun
 # Needed only during upgrades
-if [ $1 -ge 1 ] ; then
+if [ "$1" -ge "1" ] ; then
   /sbin/service docker condrestart >/dev/null 2>&1 || :
 fi
 


More information about the scm-commits mailing list