diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-03-23 09:49:49 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-03-23 09:49:49 +0100 |
commit | 964e1eac3bf7060bd96bb819f8fb82c2cc1a5cae (patch) | |
tree | 0b02fdc6b6f6c33dd3ba916704eb1b6d2c720766 | |
parent | 597dbb999379aba312f37f83d1c503ac1440ae85 (diff) |
Fix some bugs in the fetching process
-rw-r--r-- | lib/actions/fetch.bash | 7 |
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() { |