Avoid attempting to link if assembling fails

This commit is contained in:
ISSOtm
2024-09-05 14:58:17 +02:00
parent 80d37f9988
commit e289387b09

View File

@@ -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