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
|
# 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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user