Ver código fonte

support linux properly

David Rose 22 anos atrás
pai
commit
46f98ca7c3
1 arquivos alterados com 9 adições e 1 exclusões
  1. 9 1
      direct/src/leveleditor/printdir

+ 9 - 1
direct/src/leveleditor/printdir

@@ -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