aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/actions/fetch.bash4
-rw-r--r--lib/util.bash2
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