Use only the exit status of the function mywhich to determine which
command should be used to remove sysvinit script.

Signed-off-by: Matt Darfeuille <[email protected]>
---
 Shorewall-core/lib.installer   | 1 -
 Shorewall-core/lib.uninstaller | 1 -
 2 files changed, 2 deletions(-)

diff --git a/Shorewall-core/lib.installer b/Shorewall-core/lib.installer
index b9d1982..7c9a3fc 100644
--- a/Shorewall-core/lib.installer
+++ b/Shorewall-core/lib.installer
@@ -51,7 +51,6 @@ mywhich() {
 
     for dir in $(split $PATH); do
        if [ -x $dir/$1 ]; then
-           echo $dir/$1
            return 0
        fi
     done
diff --git a/Shorewall-core/lib.uninstaller b/Shorewall-core/lib.uninstaller
index 531a409..0898257 100644
--- a/Shorewall-core/lib.uninstaller
+++ b/Shorewall-core/lib.uninstaller
@@ -51,7 +51,6 @@ mywhich() {
 
     for dir in $(split $PATH); do
        if [ -x $dir/$1 ]; then
-           echo $dir/$1
            return 0
        fi
     done
-- 
2.8.3


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to