From: Rudolf Polzer Date: Sun, 16 Jun 2013 17:44:16 +0000 (+0200) Subject: fix arg count checking X-Git-Tag: xonotic-v0.8.0~117 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=da381696de4a3ff43c7b240945c22ffa6c4cbde0;p=xonotic%2Fxonotic.git fix arg count checking --- diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index b2ba714c..59ef5eff 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -4,7 +4,7 @@ case "$cmd" in misc/tools/xonotic-map-compiler-autobuild download ;; compile-map) - if [ -n "$1" ] ; then + if [ $# -eq 0 ] ; then msg "Usage: ./all compile-map mapname1 mapname2 mapname3" msg "For example: ./all compile-map dance xoylent" fi