10 lines
155 B
Plaintext
10 lines
155 B
Plaintext
|
#!/bin/sh
|
||
|
# Find a program in the path
|
||
|
|
||
|
IFS=':'
|
||
|
for dir in $PATH; do
|
||
|
if test -z "$dir"; then dir=.; fi
|
||
|
if test -f $dir/$1; then exit 0; fi
|
||
|
done
|
||
|
exit 1
|