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