GITLAB

에프에이리눅스 / 1611_0007_prime_oven

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • 1611_0007_prime_oven
  • buildroot
  • buildroot-2016.08.1
  • support
  • dependencies
  • check-host-xzcat.sh
  • 6b13f685e   BSP 최초 추가 Browse Code »
    김민수
    2016-11-22 23:20:52 +0900  
check-host-xzcat.sh 223 Bytes
edit raw blame history
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh

candidate="$1"

xzcat=`which $candidate 2>/dev/null`
if [ ! -x "$xzcat" ]; then
	xzcat=`which xzcat 2>/dev/null`
	if [ ! -x "$xzcat" ]; then
		# echo nothing: no suitable xzcat found
		exit 1
	fi
fi

echo $xzcat