Properly remove the usb image's tmpdir
Guess what? rm -f won't remove a dir. Whoops Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
059bb35628
commit
32a1991679
@ -276,7 +276,7 @@ command_usb () {
|
|||||||
mount -o loop "$fsimg" "$TMPDIR"
|
mount -o loop "$fsimg" "$TMPDIR"
|
||||||
cp -a "${work_dir}"/iso/* "$TMPDIR"
|
cp -a "${work_dir}"/iso/* "$TMPDIR"
|
||||||
umount "$TMPDIR"
|
umount "$TMPDIR"
|
||||||
rm -f "$TMPDIR"
|
rm -rf "$TMPDIR"
|
||||||
|
|
||||||
# add sectors 0-62, then glue together
|
# add sectors 0-62, then glue together
|
||||||
dd if=/dev/zero of="${imgname}" bs=512 count=63
|
dd if=/dev/zero of="${imgname}" bs=512 count=63
|
||||||
|
Loading…
Reference in New Issue
Block a user