Fix BASH vs KSH conflicts, by forcing user to use BASH.

This commit is contained in:
RandumKiwi
2014-02-06 09:04:27 +13:00
parent 79cce1ef6f
commit 9197de052f
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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)"
+1 -1
View File
@@ -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