looks like f10's mkfs.vfat (3.0.0) cowardly refuses to overwrite its output
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 24 Mar 2009 10:42:50 +0000 (10:42 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 24 Mar 2009 10:42:50 +0000 (10:42 +0000)
build.sh

index 344ccb0..60e7295 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -417,6 +417,7 @@ function build_usb() {
     local usb="$1" ; shift
     local custom="$1"
 
+    rm -f "$usb"
     mkfs.vfat -C "$usb" $(($(du -Lsk $ISOFS | awk '{ print $1; }') + $FREE_SPACE))
 
     # Populate it