hermesagent: retry the installer download, fall back to GitHub (#18091)

The Vercel host answered 4xx/5xx 21 times a week; a plain curl gave up
at once.
This commit is contained in:
CanbiZ (MickLesk) authored and GitHub committed 2026-10-23 15:47:47 +02:00
1 parent 363de2146c
commit e3bcb63608
1 file changed
+2 -1
+2 -1
View File
@@ -36,7 +36,8 @@ msg_ok "Configured Service Environment"
confirm_external_installer "https://hermes-agent.nousresearch.com/" "https://hermes-agent.nousresearch.com/install.sh"
msg_info "Installing Hermes Agent"
curl -fsSL https://hermes-agent.nousresearch.com/install.sh -o /tmp/hermes-install.sh
curl_with_retry "https://hermes-agent.nousresearch.com/install.sh" /tmp/hermes-install.sh ||
curl_with_retry "https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh" /tmp/hermes-install.sh
$STD setsid --wait bash -c '
set -a; source /etc/default/hermes; set +a
export npm_config_yes=true