]> de.git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
fix shader-cpp on unconditional shaders
authorRudolf Polzer <divverent@xonotic.org>
Thu, 5 Apr 2012 16:09:08 +0000 (18:09 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 5 Apr 2012 16:09:08 +0000 (18:09 +0200)
scripts/shader-cpp.sh

index 4d0d4d85cdae3f323df79fd2c2cd00319ddec0cb..95568f6f7c4a4515440de4b93af4633552791896 100755 (executable)
@@ -174,7 +174,7 @@ conditionalize()
 }
 parse_shader_post()
 {
-       allconds=`echo "$shaderconds" | sort -u | grep .`
+       allconds=`echo "$shaderconds" | sort -u | grep . || true`
        conds=
        conditionalize "$allconds"
 }