xref: /OK3568_Linux_fs/buildroot/support/dependencies/check-host-xzcat.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2
3candidate="$1"
4
5xzcat=`which $candidate 2>/dev/null`
6if [ ! -x "$xzcat" ]; then
7	xzcat=`which xzcat 2>/dev/null`
8	if [ ! -x "$xzcat" ]; then
9		# echo nothing: no suitable xzcat found
10		exit 1
11	fi
12fi
13
14echo $xzcat
15