[DRE-commits] [diaspora-installer] 02/05: fix if syntax

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed Apr 26 13:08:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository diaspora-installer.

commit ca8111263b4640bf19522e04791091e1607b6ad6
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Apr 26 16:14:59 2017 +0530

    fix if syntax
---
 debian/diaspora-common.postrm | 4 ++--
 debian/postrm                 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/diaspora-common.postrm b/debian/diaspora-common.postrm
index 2f48613..f85ec26 100644
--- a/debian/diaspora-common.postrm
+++ b/debian/diaspora-common.postrm
@@ -19,7 +19,7 @@ case "$1" in
     # been purged.
     :
     # stop the service if running
-    if [ service diaspora status >/dev/null ]; then
+    if service diaspora status >/dev/null; then
       service diaspora stop
     fi
 
@@ -71,7 +71,7 @@ case "$1" in
           done
         fi
         echo "Removing user: diaspora"
-        if [ id -u diaspora ]; then
+        if id -u diaspora;  then
           userdel -r diaspora
         fi
       fi
diff --git a/debian/postrm b/debian/postrm
index 49ba96c..7caae2e 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -22,7 +22,7 @@ case "$1" in
     # been purged.
     :
     # stop the service if running
-    if [ service diaspora status >/dev/null ]; then
+    if service diaspora status >/dev/null; then
       service diaspora stop
     fi
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora-installer.git



More information about the Pkg-ruby-extras-commits mailing list