createdrives: delete drives if already exist.
authorSergio L. Pascual <slp@sinrega.org>
Fri, 2 Jan 2015 01:28:52 +0000 (02:28 +0100)
committerSergio L. Pascual <slp@sinrega.org>
Fri, 2 Jan 2015 01:28:52 +0000 (02:28 +0100)
Kernel/platform-z80pack/createdrives

index 7fc2b66..bf8a131 100755 (executable)
@@ -38,6 +38,14 @@ if [ ! -e ${UTILDIR}/init ]; then
        exit 1
 fi
 
+if [ -e $DISK1 ]; then
+       rm $DISK1
+fi
+
+if [ -e $DISK2 ]; then
+       rm $DISK2
+fi
+
 $MKFS $DISK1 8 390
 if [ $? != 0 ]; then
        echo "$0: Error creating first disk"