aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-03-23 09:49:49 +0100
committerPatrick Spek <p.spek@tyil.nl>2020-03-23 09:49:49 +0100
commit964e1eac3bf7060bd96bb819f8fb82c2cc1a5cae (patch)
tree0b02fdc6b6f6c33dd3ba916704eb1b6d2c720766
parent597dbb999379aba312f37f83d1c503ac1440ae85 (diff)
Fix some bugs in the fetching process
-rw-r--r--lib/actions/fetch.bash7
1 files 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() {