mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-26 10:16:05 -05:00
9 lines
153 B
Bash
9 lines
153 B
Bash
#!/bin/bash
|
|
|
|
SIZE=$(wc -c < $1)
|
|
DIFF=$(($SIZE % 16))
|
|
if (($DIFF > 0)); then
|
|
PAD_NEEDED=$((16 - $DIFF))
|
|
dd if=/dev/zero bs=1 count=$PAD_NEEDED >> $1
|
|
fi
|