mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-24 07:27:32 -05:00
9 lines
157 B
Bash
Executable File
9 lines
157 B
Bash
Executable File
#!/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
|