support linux properly

This commit is contained in:
David Rose 2004-02-05 23:24:19 +00:00
parent 6cfe694cb9
commit 46f98ca7c3
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,14 @@
#! /bin/sh
/bin/find $1 -name \*$2 -print
echo $1
# Some Cygwin users don't have find set on on their path correctly, so
# we have to be explicit.
if [ -x /bin/find ]; then
/bin/find $1 -name \*$2 -print
else
find $1 -name \*$2 -print
fi