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:
Aaron Griffin 2008-12-23 00:33:46 -08:00
parent 059bb35628
commit 32a1991679

View File

@ -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