From 32a1991679b90d4c4bf102d535d5e5bb10012b90 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 23 Dec 2008 00:33:46 -0800 Subject: [PATCH] Properly remove the usb image's tmpdir Guess what? rm -f won't remove a dir. Whoops Signed-off-by: Aaron Griffin --- archiso/mkarchiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index ec4fcb9..469bd08 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -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