summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2012-03-02 19:06:45 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2012-03-02 19:06:45 +0100
commitc3f777ac0d8b50943110dd62b58eae7d45fdbbdd (patch)
treed17cd8f8eeecabe8b2abade388fe496cc5e52093 /scripts
parentb69bab410825d23c329ea2c601f63aadee1a5677 (diff)
use absolute path to avoid recursion
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/find3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/find b/scripts/find
index 3990e4f7f..439ec0b3f 100755
--- a/scripts/find
+++ b/scripts/find
@@ -2,12 +2,13 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
+find=$(which find)
os=$(uname)
case $os in
Darwin)
/opt/local/libexec/gnubin/find "$@"
;;
*)
- find "$@"
+ /usr/bin/find "$@"
;;
esac