distro_fedora: Remove rootfs archive on fail
This commit is contained in:
parent
6860724fa7
commit
c0bb7ba586
|
@ -30,6 +30,7 @@ fetch_base_system()
|
||||||
log "Downloading generic rootfs from $xz_url" internal
|
log "Downloading generic rootfs from $xz_url" internal
|
||||||
wget -q --show-progress -O "$xz_path" "$xz_url" || {
|
wget -q --show-progress -O "$xz_path" "$xz_url" || {
|
||||||
log "Failed to download generic rootfs" ierror
|
log "Failed to download generic rootfs" ierror
|
||||||
|
[ -f "$xz_path" ] && rm "$xz_path"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue