X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=etc%2Fmhn.find.sh;h=4b4230d4edad261951ebb0d0c2e615291c17cdcc;hb=41b06dfc782cec511142f99db9cb6ae7c2b94fb9;hp=3e5e98a58ef8f2b41893c5587384b1717881c1ef;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/etc/mhn.find.sh b/etc/mhn.find.sh index 3e5e98a..4b4230d 100755 --- a/etc/mhn.find.sh +++ b/etc/mhn.find.sh @@ -19,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"