From 3c34788a0f1cf6ae51d241941b5aa8b04e3cd007 Mon Sep 17 00:00:00 2001 From: "Claude (domedog)" Date: Wed, 17 Jun 2026 18:16:39 +0200 Subject: [PATCH] fix(freebsd): portable bash shebang (/usr/bin/env bash) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #!/bin/bash does not resolve on FreeBSD — bash lives at /usr/local/bin/bash, not /bin. The documented first-install command `./setup-hermes.sh` would fail with 'bad interpreter: No such file or directory'. Use env-based lookup so the interpreter resolves wherever bash is on PATH (FreeBSD, Linux, macOS). Covers setup-hermes.sh (the FreeBSD first-validation entrypoint) plus the two scripts/ bash helpers. install-freebsd.sh is already #!/bin/sh. Co-Authored-By: Claude Opus 4.8 --- scripts/install.sh | 2 +- scripts/kill_modal.sh | 2 +- setup-hermes.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 7d644fe2d..40d8636b1 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ============================================================================ # Hermes Agent Installer # ============================================================================ diff --git a/scripts/kill_modal.sh b/scripts/kill_modal.sh index 1e9a33128..58b8d9f83 100755 --- a/scripts/kill_modal.sh +++ b/scripts/kill_modal.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Kill all running Modal apps (sandboxes, deployments, etc.) # # Usage: diff --git a/setup-hermes.sh b/setup-hermes.sh index f91043169..3df97aa8c 100755 --- a/setup-hermes.sh +++ b/setup-hermes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ============================================================================ # Hermes Agent Setup Script # ============================================================================ -- 2.45.3