Remove no-op in link test script

No, `printf` does not do that.
This works because making it read from stdin suppresses
any words after the first one.
This commit is contained in:
ISSOtm
2026-09-17 09:35:32 -04:00
committed by Rangi
parent 9f175f7923
commit e39dbe1752
+1 -2
View File
@@ -60,8 +60,7 @@ tryCmp () {
} }
tryCmpRom () { tryCmpRom () {
# `printf` lets us keep only the first returned word from `wc`. rom_size=$(wc -c <"$1")
rom_size=$(printf %s $(wc -c <"$1"))
# 'rgblink -x' implies '-t', so we cannot use '-x' to trim the ROM output # 'rgblink -x' implies '-t', so we cannot use '-x' to trim the ROM output
dd if="$gbtemp" count=1 bs="$rom_size" >"$otemp" 2>/dev/null dd if="$gbtemp" count=1 bs="$rom_size" >"$otemp" 2>/dev/null
tryCmp "$1" "$otemp" tryCmp "$1" "$otemp"