]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
make at least ./all update work in zsh too
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 64cd09977905099018505f0f63de0af3c09af378..bdd65d992b4217d2379679e14cea3897465d9851 100755 (executable)
--- a/all
+++ b/all
@@ -2,6 +2,9 @@
 # vim: filetype=zsh
 
 set -e
+if [ -n "$ZSH_VERSION" ]; then
+       setopt SH_WORD_SPLIT
+fi
 
 # I use this in EVERY shell script ;)
 LF="
@@ -36,7 +39,7 @@ esac
 
 msg()
 {
-       echo >&2 "$ESC[1m$*$ESC[m"
+       echo >&2 "$ESC""[1m$*$ESC""[m"
 }
 
 self=`git hash-object "$SELF"`