Compare commits
1 Commits
master
...
installer-
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3a8ea35785 |
|
@ -92,6 +92,7 @@ done
|
||||||
## Utilities
|
## Utilities
|
||||||
|
|
||||||
PATH=/usr/bin:/bin
|
PATH=/usr/bin:/bin
|
||||||
|
origPATH="$PATH"
|
||||||
|
|
||||||
if test "x`echo -n`" = "x-n"; then
|
if test "x`echo -n`" = "x-n"; then
|
||||||
echon() { /bin/echo "$*\c"; }
|
echon() { /bin/echo "$*\c"; }
|
||||||
|
@ -128,6 +129,17 @@ lookfor() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
for dir in $origPATH; do
|
||||||
|
if test -x "$dir/$1"; then
|
||||||
|
echo "Warning: $1 found in a non-standrad place: $dir/$1"
|
||||||
|
# Reset PATH, as it is likely the command found in a non-standard place
|
||||||
|
# will not work properly with the basic PATH.
|
||||||
|
PATH="$origPATH"
|
||||||
|
eval "$1=$dir/$1"
|
||||||
|
IFS="$saved_IFS"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
done
|
||||||
IFS="$saved_IFS"
|
IFS="$saved_IFS"
|
||||||
failwith "could not find \"$1\"."
|
failwith "could not find \"$1\"."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user