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
+2 -5
View File
@@ -3,12 +3,9 @@
# We need bash functionality. Executing bash with the shebang won't be # We need bash functionality. Executing bash with the shebang won't be
# portable as the location of bash differs. # portable as the location of bash differs.
SHELLFILE="$_" if [ -z "$BASH_VERSION" ]; then
case "$SHELLFILE" in
sh|*/sh)
exec bash "$0" "$@" exec bash "$0" "$@"
;; fi
esac
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
{ {