]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Avoid using nested quotes in the map screenshot script
authorMario <mario@smbclan.net>
Wed, 14 Oct 2020 23:13:57 +0000 (09:13 +1000)
committerMario <mario@smbclan.net>
Wed, 14 Oct 2020 23:13:57 +0000 (09:13 +1000)
misc/tools/xonotic-map-screenshot

index f4324c1467058b4941d6ea448993d12917fb54d6..f402d2d86977c3791bad856f24f75b3641da05e5 100755 (executable)
@@ -31,13 +31,13 @@ count=`yes x | head -n "$count" | tr -cd x`
        +'sv_clientcommand_antispam_time -999' \
        +'sv_clientcommand_antispam_count 999' \
        +'set catchme "catchme_"' \
-       +"alias catchme_$count \"quit\"" \
+       +"alias catchme_$count quit" \
        +'alias NARF "sv_cmd nextframe cl_cmd nextframe sv_cmd nextframe cl_cmd nextframe $*"' \
        +'alias ZORT "god; NARF EGAD"' \
        +'alias EGAD "noclip; NARF POIT"' \
-       +'alias POIT "$catchme; set catchme \"${catchme}x\"; impulse 911; NARF TROZ"' \
+       +'alias POIT "$catchme; set catchme ${catchme}x; impulse 911; NARF TROZ"' \
        +'alias TROZ "screenshot; NARF POIT"' \
-       +'alias cl_hook_gamestart_all "defer 1.1 \"cmd join\"; defer 2 ZORT"' \
+       +'alias cl_hook_gamestart_all "defer 1.1 join; defer 2 ZORT"' \
        +"defer \"$watchdog\" quit" \
        +"map \"$map\"" \
        +'timelimit 0' \