check-host-lzip.sh 216 B

1234567891011121314
  1. #!/bin/sh
  2. candidate="$1"
  3. lzip=`which $candidate 2>/dev/null`
  4. if [ ! -x "$lzip" ]; then
  5. lzip=`which lzip 2>/dev/null`
  6. if [ ! -x "$lzip" ]; then
  7. # echo nothing: no suitable lzip found
  8. exit 1
  9. fi
  10. fi
  11. echo $lzip