From c0bb7ba5869f5f331b71fd18164a19e2c1e8e029 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Sun, 3 Nov 2024 16:44:39 +0500 Subject: [PATCH] distro_fedora: Remove rootfs archive on fail --- common.d/common.fedora.sh | 1 + 1 file changed, 1 insertion(+) 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 } }