From: Rudolf Polzer <divverent@alientrap.org>
Date: Thu, 15 Jul 2010 18:02:29 +0000 (+0200)
Subject: better
X-Git-Tag: xonotic-v0.1.0preview~154^2~3
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=92bd70f85a53f10af747893e55c6ae1f63cdf1c7;p=xonotic%2Fxonotic-maps.pk3dir.git

better
---

diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh
index 55d65aa3..2d020a08 100644
--- a/scripts/shader-audit.sh
+++ b/scripts/shader-audit.sh
@@ -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