From fec967a41dae54098d5b1e0527ab277fbf8d5d1d Mon Sep 17 00:00:00 2001 From: Matt Darfeuille Date: Fri, 3 Mar 2017 15:25:54 +0100 Subject: [PATCH] Do not display where an executable is located 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 Signed-off-by: Tom Eastep --- 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 b9d1982f3..7c9a3fcdf 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 531a40914..089825704 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