mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Avoid attempting to link if assembling fails
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user