From 964e1eac3bf7060bd96bb819f8fb82c2cc1a5cae Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Mon, 23 Mar 2020 09:49:49 +0100
Subject: Fix some bugs in the fetching process
---
lib/actions/fetch.bash | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/actions/fetch.bash b/lib/actions/fetch.bash
index 4b5440c..55167c9 100644
--- a/lib/actions/fetch.bash
+++ b/lib/actions/fetch.bash
@@ -49,11 +49,12 @@ download_core() {
mkdir -p -- "$destination"
- tarball="$(fetch_http "$source")"
- tar xzf "$tarball" -C "$destination" --strip-components=1 && return
+ tarball="$(fetch_http "$source")" \
+ && tar xzf "$tarball" -C "$destination" --strip-components=1 \
+ && return
crit "Failed to download $destination"
- rm -f -- "$destination"
+ rm -fr -- "$destination"
}
download_module_git() {
--
cgit v1.1