]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
fix arg count checking
authorRudolf Polzer <divverent@xonotic.org>
Sun, 16 Jun 2013 17:44:16 +0000 (19:44 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 16 Jun 2013 17:44:16 +0000 (19:44 +0200)
misc/tools/all/xonotic.subr

index b2ba714cdce55904c449ef50d7b9d6679b81dea3..59ef5eff6634bc8dd7fd428d0dfd976df1579cc4 100644 (file)
@@ -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