distro_fedora: Remove rootfs archive on fail

This commit is contained in:
timoxa0 2024-11-03 16:44:39 +05:00
parent 6860724fa7
commit c0bb7ba586

View file

@ -30,6 +30,7 @@ fetch_base_system()
log "Downloading generic rootfs from $xz_url" internal
wget -q --show-progress -O "$xz_path" "$xz_url" || {
log "Failed to download generic rootfs" ierror
[ -f "$xz_path" ] && rm "$xz_path"
return 1
}
}