first stage of new bootstrap
[nyanlinux.git] / utils.sh
blob2047af328b22f9d146585cd9e759edbc18122250
1 find_in_path()
3 r=
4 ifs_prev="$IFS"
5 IFS=:
6 for d in $PATH
7 do
8 if test -x $d/$1; then
9 IFS="$ifs_prev"
10 r=$d/$1
11 return 0
13 done
14 IFS="$ifs_prev"
15 return 1