File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ site/static/install.sh
Original file line number Diff line number Diff line change 22set -euo pipefail
33
44REPO=" google/agentmesh"
5- INSTALL_DIR=" /usr/local/bin"
5+ INSTALL_DIR=" ${AGENTMESH_INSTALL_DIR :- ${INSTALL_DIR :- / usr/ local/ bin} } "
66
77echo " Installing Agent Mesh from $REPO ..."
88
@@ -49,13 +49,9 @@ if ! curl -sfL -o checksums.txt "${CHECKSUMS_URL}"; then
4949 exit 1
5050fi
5151
52- # Construct download URL (matches goreleaser name template, with fallback for pre-rename tags )
52+ # Construct download URL (matches goreleaser name template)
5353TAR_NAME=" agentmesh_${OS_NAME} _${ARCH_NAME} .tar.gz"
5454EXPECTED_SUM=$( awk -v f=" ${TAR_NAME} " ' $2 == f {print $1}' checksums.txt)
55- if [ -z " ${EXPECTED_SUM} " ]; then
56- TAR_NAME=" sam_${OS_NAME} _${ARCH_NAME} .tar.gz"
57- EXPECTED_SUM=$( awk -v f=" ${TAR_NAME} " ' $2 == f {print $1}' checksums.txt)
58- fi
5955if [ -z " ${EXPECTED_SUM} " ]; then
6056 echo " Error: archive for ${OS_NAME} _${ARCH_NAME} not found in checksums.txt"
6157 exit 1
@@ -87,7 +83,7 @@ tar -xzf "${TAR_NAME}"
8783
8884echo " Installing to ${INSTALL_DIR} (may require sudo)..."
8985INSTALLED_BINS=()
90- for b in agentmesh-one agentmesh-node agentmesh-control-plane agentmesh-router mcp-client agentmesh-console sam-one sam-node sam-control-plane sam-router sam-console ; do
86+ for b in agentmesh-one agentmesh-node agentmesh-control-plane agentmesh-router mcp-client agentmesh-console; do
9187 if [ -f " $b " ]; then
9288 INSTALLED_BINS+=(" $b " )
9389 fi
You can’t perform that action at this time.
0 commit comments