Switch from wget to cURL

This commit is contained in:
3wc 2021-05-30 00:19:24 +02:00
parent a4f3fc5ce2
commit 70974690f9
1 changed files with 3 additions and 4 deletions

7
abra
View File

@ -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 ☮"
}