1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-25 23:42:49 +02:00

dsv/dsv: delete .zip file if extraction fails

This allows updating a the .zip in cases where the archive's name didn't
change but its content did. "dsv setup" has to be manually re-run in
this case.
This commit is contained in:
Werner Almesberger 2013-11-28 22:34:33 -03:00
parent 6bfd9d9f44
commit 65f93a2684

View File

@ -80,7 +80,7 @@ flush()
# @@@ should handle error
fi
unzip -p "$DSV_DIR/$zip" "$inside" >"$DSV_DIR/$ds" ||
{ rm -f "$DSV_DIR/$ds"; exit 1; }
{ rm -f "$DSV_DIR/$zip" "$DSV_DIR/$ds"; exit 1; }
fi
fi
eval for n in $name $alias\; do \