From 7119a00eff24072b1da30da08d5305cf7fd73cb0 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sun, 22 Mar 2020 23:28:27 +0100 Subject: Rename fetch to fetch_http --- lib/actions/fetch.bash | 4 ++-- 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 -- cgit v1.1