]> Zhao Yanbai Git Server - minix.git/commitdiff
release.sh: jail precaution
authorBen Gras <ben@minix3.org>
Thu, 14 Jul 2011 16:36:40 +0000 (18:36 +0200)
committerBen Gras <ben@minix3.org>
Thu, 14 Jul 2011 16:36:40 +0000 (18:36 +0200)
tools/release.sh

index 3ba2b148e45883955c89d201db06b99e62396cc3..b227bc0aff88977ece309b842a31694b138e92d5 100755 (executable)
@@ -299,7 +299,8 @@ fi
 
 # If we are making a jail, all is done!
 if [ $JAILMODE = 1 ]
-then   mv $RELEASEDIR $FINAL_JAILDIR
+then   rm -rf $FINAL_JAILDIR
+       mv $RELEASEDIR $FINAL_JAILDIR
        echo "Created new minix install in $FINAL_JAILDIR."
        echo "Enter it by typing: "
        echo "# chroot $FINAL_JAILDIR /bin/sh"