Use POSIX-compatible dd(1) instead of head -c.

This commit is contained in:
Anthony J. Bentley
2019-08-30 23:11:28 -06:00
parent 350f40300c
commit a517f900e4
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ for i in *.asm; do
bin=${i%.asm}.out.bin
if [ -f $bin ]; then
../../rgblink -o $gb $o > $after 2>&1
head -c $(wc -c < $bin) $gb > $after 2>&1
dd if=$gb count=1 bs=$(printf %s $(wc -c < $bin)) > $after 2>/dev/null
hexdump -C $after > $before && mv $before $after
hexdump -C $bin > $before
diff -u $before $after