~dricottone/my-utils

c198ef1e2669c126601a2f41c5e7fac3af76d30f — Dominic Ricottone 2 years ago 4d76920
Fix quiet option on whiched and whichvi

Previously the quiet option was suppressing the exit code on these
programs.
2 files changed, 2 insertions(+), 4 deletions(-)

M core/whiched
M core/whichvi
M core/whiched => core/whiched +1 -2
@@ 49,8 49,7 @@ done
# if have not exited, no program was specified
if [ "$quiet" -eq 0 ]; then
  (>&2 /usr/bin/printf "Usage: whiched [OPTIONS] PROGRAM\n")
  exit 1
fi

exit 0
exit 1


M core/whichvi => core/whichvi +1 -2
@@ 48,8 48,7 @@ done

if [ "$quiet" -eq 0 ]; then
  (>&2 /usr/bin/printf "Usage: whichvi [OPTIONS] PROGRAM\n")
  exit 1
fi

exit 0
exit 1