From: Rudolf Polzer Date: Thu, 5 Apr 2012 16:09:08 +0000 (+0200) Subject: fix shader-cpp on unconditional shaders X-Git-Tag: xonotic-v0.7.0~56 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic-maps.pk3dir.git;a=commitdiff_plain;h=fb4b0e3abb8191950b0d64a00e91a7cc0d8ce7fd fix shader-cpp on unconditional shaders --- diff --git a/scripts/shader-cpp.sh b/scripts/shader-cpp.sh index 4d0d4d85..95568f6f 100755 --- a/scripts/shader-cpp.sh +++ b/scripts/shader-cpp.sh @@ -174,7 +174,7 @@ conditionalize() } parse_shader_post() { - allconds=`echo "$shaderconds" | sort -u | grep .` + allconds=`echo "$shaderconds" | sort -u | grep . || true` conds= conditionalize "$allconds" }