From: Rudolf Polzer Date: Mon, 8 Nov 2010 20:16:50 +0000 (+0100) Subject: make at least ./all update work in zsh too X-Git-Tag: xonotic-v0.1.0preview~68 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=23cb5d9fd34b6cf06e7ed5ae4058bf5c6eded4b6 make at least ./all update work in zsh too --- diff --git a/all b/all index 64cd0997..bdd65d99 100755 --- 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"`