Fix BASH vs KSH conflicts, by forcing user to use BASH.
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
# A simple script using SED to make map configs
|
||||
# compatible with the new layout.
|
||||
|
||||
# KSH causes conflicts, allow BASH only:
|
||||
if [ -z "$(echo "$BASH")" ]; then
|
||||
echo "FAILURE: Please run this script with BASH, not SH/KSH/ZSH, etc"
|
||||
exit
|
||||
fi
|
||||
|
||||
# HELP file:
|
||||
if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "" ]; then
|
||||
echo "Usage: "$0" MAP_CONFIG_FILE(S)"
|
||||
|
||||
@@ -20,7 +20,7 @@ ABSOLUTEPATHTODOCS=~/AssaultCube/GIT_Website/htdocs/docs
|
||||
NEWACVERSION=1.2.0.2
|
||||
|
||||
# KSH won't work, as this script uses echo throughout it, echo's options are shell-specific:
|
||||
if [ -z "$(echo -e "$BASH")" ]; then
|
||||
if [ -z "$(echo "$BASH")" ]; then
|
||||
echo "FAILURE: Please run this script with BASH, not SH/KSH/ZSH, etc"
|
||||
exit
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user