aboutsummaryrefslogtreecommitdiff
path: root/lib/actions/fetch.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/actions/fetch.bash')
-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() {