Kaynağa Gözat

* Use custom path to find bash

svn: 1549
Bryan Drewery 21 yıl önce
ebeveyn
işleme
b4f2620970
1 değiştirilmiş dosya ile 1 ekleme ve 8 silme
  1. 1 8
      build

+ 1 - 8
build

@@ -1,15 +1,8 @@
 #! /bin/sh
 #! /bin/sh
 # We want to use BASH, not whatever /bin/sh points to.
 # We want to use BASH, not whatever /bin/sh points to.
 if test -z "$BASH"; then
 if test -z "$BASH"; then
+  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
   bash="`which bash`"
   bash="`which bash`"
-  if ! test -e ${bash}; then
-    bash="/bin/bash"
-  fi
-
-  if ! test -e ${bash}; then
-    bash="/usr/local/bin/bash"
-  fi
-
   ${bash} $0 ${1+"$@"}
   ${bash} $0 ${1+"$@"}
   exit 0
   exit 0
 fi
 fi