]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
better
authorRudolf Polzer <divverent@alientrap.org>
Thu, 15 Jul 2010 18:02:29 +0000 (20:02 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 15 Jul 2010 18:02:29 +0000 (20:02 +0200)
scripts/shader-audit.sh

index 55d65aa348639bfb24f41ea5010a58537c552bce..2d020a08a4d7ba5ce474f6b4036363864929b560 100644 (file)
@@ -15,12 +15,14 @@ textures_used=
 use_texture()
 {
        # does texture exist?
-       if [ "$3" != "self" ]; then
-               if \
-                       [ -f "../$2.tga" ] || \
-                       [ -f "../$2.jpg" ] || \
-                       [ -f "../$2.png" ]; then
-                       :
+       if \
+               [ -f "../$2.tga" ] || \
+               [ -f "../$2.jpg" ] || \
+               [ -f "../$2.png" ]; then
+               :
+       else
+               if [ "$3" = "self" ]; then
+                       return
                else
                        echo "(EE) shader $1 uses non-existing texture $2"
                fi