mirror of
https://github.com/dockur/windows-arm.git
synced 2024-06-28 19:01:33 +00:00
fix: Delete ISO when extraction fails (#59)
This commit is contained in:
parent
01b8a08980
commit
28da9e391e
|
@ -6,6 +6,9 @@
|
|||
.gitmodules
|
||||
Dockerfile
|
||||
Dockerfile.archive
|
||||
compose.yml
|
||||
compose.yaml
|
||||
docker-compose.yml
|
||||
docker-compose.yaml
|
||||
|
||||
*.md
|
||||
|
|
|
@ -193,7 +193,6 @@ startInstall() {
|
|||
ISO="$STORAGE/$CUSTOM"
|
||||
fi
|
||||
|
||||
rm -f "$TMP/$BASE"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
@ -413,6 +412,7 @@ extractImage() {
|
|||
if [[ "${iso,,}" == *".esd" ]]; then
|
||||
if ! extractESD "$iso" "$dir"; then
|
||||
error "Failed to extract ESD file!"
|
||||
rm -f "$iso"
|
||||
exit 67
|
||||
fi
|
||||
return 0
|
||||
|
@ -444,6 +444,7 @@ extractImage() {
|
|||
|
||||
if ! 7z x "$iso" -o"$dir" > /dev/null; then
|
||||
error "Failed to extract ISO file!"
|
||||
rm -f "$iso"
|
||||
exit 66
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue