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 <matdarf@gmail.com>
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Matt Darfeuille 2017-03-03 15:25:54 +01:00 committed by Tom Eastep
parent a7d45e9566
commit fec967a41d
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10
2 changed files with 0 additions and 2 deletions

View File

@ -51,7 +51,6 @@ mywhich() {
for dir in $(split $PATH); do for dir in $(split $PATH); do
if [ -x $dir/$1 ]; then if [ -x $dir/$1 ]; then
echo $dir/$1
return 0 return 0
fi fi
done done

View File

@ -51,7 +51,6 @@ mywhich() {
for dir in $(split $PATH); do for dir in $(split $PATH); do
if [ -x $dir/$1 ]; then if [ -x $dir/$1 ]; then
echo $dir/$1
return 0 return 0
fi fi
done done