From 92bd70f85a53f10af747893e55c6ae1f63cdf1c7 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 15 Jul 2010 20:02:29 +0200 Subject: [PATCH] better --- scripts/shader-audit.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 -- 2.39.2