Better checking whether the script is executed from bash.
Should work on more platforms now. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1347 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -3,12 +3,9 @@
|
||||
|
||||
# We need bash functionality. Executing bash with the shebang won't be
|
||||
# portable as the location of bash differs.
|
||||
SHELLFILE="$_"
|
||||
case "$SHELLFILE" in
|
||||
sh|*/sh)
|
||||
exec bash "$0" "$@"
|
||||
;;
|
||||
esac
|
||||
if [ -z "$BASH_VERSION" ]; then
|
||||
exec bash "$0" "$@"
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user