mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-19 04:07:05 +00:00
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:
+1
-2
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user