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
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ command_usb () {
|
|||
mount -o loop "$fsimg" "$TMPDIR"
|
||||
cp -a "${work_dir}"/iso/* "$TMPDIR"
|
||||
umount "$TMPDIR"
|
||||
rm -f "$TMPDIR"
|
||||
rm -rf "$TMPDIR"
|
||||
|
||||
# add sectors 0-62, then glue together
|
||||
dd if=/dev/zero of="${imgname}" bs=512 count=63
|
||||
|
|
Loading…
Add table
Reference in a new issue