Просмотр исходного кода

* Use custom path to find bash

svn: 1549
Bryan Drewery 21 лет назад
Родитель
Сommit
b4f2620970
1 измененных файлов с 1 добавлено и 8 удалено
  1. 1 8
      build

+ 1 - 8
build

@@ -1,15 +1,8 @@
 #! /bin/sh
 # We want to use BASH, not whatever /bin/sh points to.
 if test -z "$BASH"; then
+  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
   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+"$@"}
   exit 0
 fi