Browse Source

fix printdir some more

David Rose 22 years ago
parent
commit
4b137b28d4
1 changed files with 4 additions and 7 deletions
  1. 4 7
      direct/src/leveleditor/printdir

+ 4 - 7
direct/src/leveleditor/printdir

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