diff --git a/common.d/common.fedora.sh b/common.d/common.fedora.sh index f24a8f6..2e85720 100644 --- a/common.d/common.fedora.sh +++ b/common.d/common.fedora.sh @@ -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 } }