X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=etc%2Fmhn.find.sh;h=4b4230d4edad261951ebb0d0c2e615291c17cdcc;hp=8f128f7986794262f96e71c6a355274c43968c7c;hb=e1f54ce0994fca960d2680d07b05a9deb9e5485b;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/etc/mhn.find.sh b/etc/mhn.find.sh index 8f128f7..4b4230d 100755 --- a/etc/mhn.find.sh +++ b/etc/mhn.find.sh @@ -2,7 +2,6 @@ # # mhn.find.sh -- check if a particular command is available # -# $Id$ if test -z "$2"; then echo "usage: mhn.find.sh search-path program" 1>&2 @@ -20,20 +19,20 @@ for A in $SEARCHPATH; do # skip the directories `.' and `..' if test "$A" = "." -o "$A" = ".."; then - continue + continue fi # if program was found in /usr/local/bin, then # just echo program name, else echo full pathname if test -f "$A/$PROGRAM"; then - if test "$A" = "/usr/local/bin"; then - PGM="$PROGRAM" - else - PGM="$A/$PROGRAM" - fi - - echo "$PGM" - exit 0 + if test "$A" = "/usr/local/bin"; then + PGM="$PROGRAM" + else + PGM="$A/$PROGRAM" + fi + + echo "$PGM" + exit 0 fi done IFS="$oIFS"