mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-29 01:31:41 +00:00
Root cause: the install script uses `set -e` (exit on error) and `read -p` for interactive prompts. When running via `curl | bash`, stdin is a pipe (not a terminal), so `read -p` hits EOF and returns exit code 1. Under `set -e`, this silently aborts the entire script before hermes is installed. Fix: detect non-interactive mode using `[ -t 0 ]` (standard POSIX test for terminal stdin) and skip all interactive prompts when running in piped mode. Clear messages are shown instead, telling the user what to run manually. Changes: - Add IS_INTERACTIVE flag at script start ([ -t 0 ] check) - Guard sudo package install prompt (the direct cause of #69) - Guard setup wizard (calls interactive hermes setup) - Guard WhatsApp pairing and gateway install prompts All other prompts use the same read -p pattern and would fail the same way in piped mode, so they are all guarded for completeness. Closes #69 |
||
|---|---|---|
| .. | ||
| whatsapp-bridge | ||
| hermes-gateway | ||
| install.ps1 | ||
| install.sh | ||
| kill_modal.sh | ||
| sample_and_compress.py | ||