mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Avoid bogus comparisons when linking fails
This avoids drowning RGBLINK's errors in a meaningless `diff` output
This commit is contained in:
@@ -114,12 +114,15 @@ for i in *.asm; do
|
|||||||
|
|
||||||
desired_binname=${i%.asm}.out.bin
|
desired_binname=${i%.asm}.out.bin
|
||||||
if [ -f "$desired_binname" ]; then
|
if [ -f "$desired_binname" ]; then
|
||||||
"$RGBLINK" -o "$gb" "$o"
|
if ! "$RGBLINK" -o "$gb" "$o"; then
|
||||||
|
echo "${bold}${red}\`$RGBLINK -o $gb $o\` failed!${rescolors}${resbold}"
|
||||||
|
else
|
||||||
rom_size=$(printf %s $(wc -c <"$desired_binname"))
|
rom_size=$(printf %s $(wc -c <"$desired_binname"))
|
||||||
dd if="$gb" count=1 bs="$rom_size" >"$output" 2>/dev/null
|
dd if="$gb" count=1 bs="$rom_size" >"$output" 2>/dev/null
|
||||||
tryCmp "$desired_binname" "$output" gb
|
tryCmp "$desired_binname" "$output" gb
|
||||||
(( our_rc = our_rc || $? ))
|
(( our_rc = our_rc || $? ))
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
(( rc = rc || our_rc ))
|
(( rc = rc || our_rc ))
|
||||||
if [[ $our_rc -ne 0 ]]; then
|
if [[ $our_rc -ne 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user