From e289387b094eb46ac0c98ed07abefbc9fe80cef3 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 5 Sep 2024 14:58:17 +0200 Subject: [PATCH] Avoid attempting to link if assembling fails --- test/asm/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/asm/test.sh b/test/asm/test.sh index 6d75e958..7d1069e2 100755 --- a/test/asm/test.sh +++ b/test/asm/test.sh @@ -113,7 +113,7 @@ for i in *.asm; do (( our_rc = our_rc || $? )) desired_binname=${i%.asm}.out.bin - if [ -f "$desired_binname" ]; then + if [[ -f "$desired_binname" && $our_rc -eq 0 ]]; then if ! "$RGBLINK" -o "$gb" "$o"; then echo "${bold}${red}\`$RGBLINK -o $gb $o\` failed!${rescolors}${resbold}" else