Switch from wget to cURL
This commit is contained in:
parent
a4f3fc5ce2
commit
70974690f9
7
abra
7
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 ☮"
|
||||
}
|
||||
|
Reference in New Issue
Block a user