diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-03-22 23:28:27 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-03-22 23:28:27 +0100 |
commit | 7119a00eff24072b1da30da08d5305cf7fd73cb0 (patch) | |
tree | 177fa4ce20369d6b37309af6542b523fc0692b41 | |
parent | 657f6d2d6775968c7e269cf74a414719e7b241f4 (diff) |
Rename fetch to fetch_http
-rw-r--r-- | lib/actions/fetch.bash | 4 | ||||
-rw-r--r-- | lib/util.bash | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/actions/fetch.bash b/lib/actions/fetch.bash index 2b932be..4b5440c 100644 --- a/lib/actions/fetch.bash +++ b/lib/actions/fetch.bash @@ -49,7 +49,7 @@ download_core() { mkdir -p -- "$destination" - tarball="$(fetch "$source")" + tarball="$(fetch_http "$source")" tar xzf "$tarball" -C "$destination" --strip-components=1 && return crit "Failed to download $destination" @@ -89,7 +89,7 @@ download_module_http() { return 0 fi - tarball="$(fetch "$url")" + tarball="$(fetch_http "$url")" extracted="$(tmpdir)" notice "Extracting $tarball into $extracted" diff --git a/lib/util.bash b/lib/util.bash index 7ab0bc1..681c589 100644 --- a/lib/util.bash +++ b/lib/util.bash @@ -45,7 +45,7 @@ die() { } # Fetch a file from an URL. Using this function introduces a dependency on curl. -fetch() { +fetch_http() { local OPTIND local buffer |