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:
meep-eep
2004-03-06 15:56:08 +00:00
parent 1950ea1cfb
commit cc42b31b9c
+3 -6
View File
@@ -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
{