From: Arun Thomas Date: Thu, 16 Feb 2012 22:08:22 +0000 (+0100) Subject: mkboot: ensure image target dir is cleaned up X-Git-Tag: v3.2.0~23 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=74caf0e21f42949f14f45beeb1a145a0fc76a812;p=minix.git mkboot: ensure image target dir is cleaned up --- diff --git a/tools/mkboot b/tools/mkboot index 0389cb707..3c48fdeee 100755 --- a/tools/mkboot +++ b/tools/mkboot @@ -126,6 +126,7 @@ hdboot) if [ "$hdboot_t" = "minix" ] then [ -d /boot/minix/.temp ] || exit 1 + rm -rf /boot/minix/"$target"/ mv /boot/minix/.temp /boot/minix/"$target" rm -f /boot/minix_latest ln -s minix/"$target" /boot/minix_latest