From 36b44a5e944d80f4bb9cd578af7b2320cca0f692 Mon Sep 17 00:00:00 2001 From: "bjorn.englesson" Date: Sat, 3 Oct 2026 10:01:04 +0200 Subject: [PATCH] Update install.sh --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 288ef02..3e688a3 100644 --- a/install.sh +++ b/install.sh @@ -4,9 +4,13 @@ # AGENT_HUB_SETUP_ARGS, when set, is added to the setup's arguments, e.g. --no-start. agent_hub_install() { if [ "$(uname -s)" != Linux ] || [ "$(uname -m)" != x86_64 ]; then - echo 'This line installs Agent Hub on Linux (x86_64). On Windows, run the page'\''s PowerShell line.' >&2 + echo 'This line installs Agent Hub on Linux (x86_64). On Windows, run the PowerShell line instead.' >&2 return 1 fi + glibc=$(getconf GNU_LIBC_VERSION 2>/dev/null) || glibc= + case "${glibc#glibc }" in + 2.[0-9]|2.[12][0-9]|2.3[0-4]) echo "Agent Hub needs glibc 2.35 or newer; this system has ${glibc#glibc }." >&2; return 1 ;; + esac command -v curl >/dev/null 2>&1 || { echo 'Installing Agent Hub needs curl.' >&2; return 1; } dir=$(mktemp -d) || return 1 exe="$dir/agent-hub-setup-linux"