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
|
if [ "$local_ctime" -lt "$remote_ctime" ]; then
|
||||||
info "Downloading new apps.json"
|
info "Downloading new apps.json"
|
||||||
wget -qO "$ABRA_APPS_JSON" "$ABRA_APPS_URL"
|
curl -sLo "$ABRA_APPS_JSON" "$ABRA_APPS_URL"
|
||||||
else
|
else
|
||||||
debug "No apps.json update needed"
|
debug "No apps.json update needed"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
info "Downloading apps.json"
|
info "Downloading apps.json"
|
||||||
wget -qO "$ABRA_APPS_JSON" "$ABRA_APPS_URL"
|
curl -sLo "$ABRA_APPS_JSON" "$ABRA_APPS_URL"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -596,7 +596,6 @@ require_app_version() {
|
|||||||
|
|
||||||
vendor_binary() {
|
vendor_binary() {
|
||||||
require_vendor_dir
|
require_vendor_dir
|
||||||
require_binary wget
|
|
||||||
|
|
||||||
local REPO="$1"
|
local REPO="$1"
|
||||||
local VERSION="$2"
|
local VERSION="$2"
|
||||||
@ -623,7 +622,7 @@ vendor_binary() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
wget -qO "$ABRA_VENDOR_DIR/$BINARY" "$RELEASE_URL"
|
curl -sLo "$ABRA_VENDOR_DIR/$BINARY" "$RELEASE_URL"
|
||||||
chmod +x "$ABRA_VENDOR_DIR/$BINARY"
|
chmod +x "$ABRA_VENDOR_DIR/$BINARY"
|
||||||
success "$BINARY is now vendored ☮"
|
success "$BINARY is now vendored ☮"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user