mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-29 13:25:53 +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:
parent
6bfd9d9f44
commit
65f93a2684
2
dsv/dsv
2
dsv/dsv
@ -80,7 +80,7 @@ flush()
|
|||||||
# @@@ should handle error
|
# @@@ should handle error
|
||||||
fi
|
fi
|
||||||
unzip -p "$DSV_DIR/$zip" "$inside" >"$DSV_DIR/$ds" ||
|
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
|
||||||
fi
|
fi
|
||||||
eval for n in $name $alias\; do \
|
eval for n in $name $alias\; do \
|
||||||
|
Loading…
Reference in New Issue
Block a user