2017-02-12 21:15:39 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
candidate="$1"
|
|
|
|
|
2021-10-01 20:08:32 +02:00
|
|
|
lzip=`which $candidate 2>/dev/null`
|
2017-02-12 21:15:39 +01:00
|
|
|
if [ ! -x "$lzip" ]; then
|
2021-10-01 20:08:32 +02:00
|
|
|
lzip=`which lzip 2>/dev/null`
|
2017-02-12 21:15:39 +01:00
|
|
|
if [ ! -x "$lzip" ]; then
|
|
|
|
# echo nothing: no suitable lzip found
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $lzip
|