From 70974690f961cd87a9ace372825ba7da7364f019 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Sun, 30 May 2021 00:19:24 +0200 Subject: [PATCH] Switch from wget to cURL --- abra | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/abra b/abra index 78d4ec6..fe57895 100755 --- a/abra +++ b/abra @@ -506,13 +506,13 @@ require_apps_json() { if [ "$local_ctime" -lt "$remote_ctime" ]; then info "Downloading new apps.json" - wget -qO "$ABRA_APPS_JSON" "$ABRA_APPS_URL" + curl -sLo "$ABRA_APPS_JSON" "$ABRA_APPS_URL" else debug "No apps.json update needed" fi else info "Downloading apps.json" - wget -qO "$ABRA_APPS_JSON" "$ABRA_APPS_URL" + curl -sLo "$ABRA_APPS_JSON" "$ABRA_APPS_URL" fi } @@ -596,7 +596,6 @@ require_app_version() { vendor_binary() { require_vendor_dir - require_binary wget local REPO="$1" local VERSION="$2" @@ -623,7 +622,7 @@ vendor_binary() { ;; esac - wget -qO "$ABRA_VENDOR_DIR/$BINARY" "$RELEASE_URL" + curl -sLo "$ABRA_VENDOR_DIR/$BINARY" "$RELEASE_URL" chmod +x "$ABRA_VENDOR_DIR/$BINARY" success "$BINARY is now vendored ☮" }