Pārlūkot izejas kodu

use absolute path to avoid recursion

Waldemar Brodkorb 13 gadi atpakaļ
vecāks
revīzija
c3f777ac0d
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      scripts/find

+ 2 - 1
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