mirror of
https://github.com/a2-4am/4cade.git
synced 2024-11-27 08:50:01 +00:00
12 lines
249 B
Bash
Executable File
12 lines
249 B
Bash
Executable File
#!/bin/bash
|
|
|
|
totalsize=$1
|
|
outfile=$2
|
|
|
|
[[ "$OSTYPE" == "linux-gnu" ]] \
|
|
&& filesize=$(stat -c "%s" "$outfile") \
|
|
|| filesize=$(stat -f "%z" "$outfile")
|
|
|
|
padsize=$((512-$filesize))
|
|
dd if=/dev/zero bs=1 count=$padsize 2>/dev/null >> "$outfile"
|