mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-06 07:51:53 +00:00
fix(gateway): avoid zsh status variable in update wrapper
This commit is contained in:
parent
c1ae18ee81
commit
fdd455bc58
2 changed files with 7 additions and 1 deletions
|
|
@ -12837,7 +12837,11 @@ class GatewayRunner:
|
|||
update_cmd = (
|
||||
f"PYTHONUNBUFFERED=1 {hermes_cmd_str} update --gateway"
|
||||
f" > {shlex.quote(str(output_path))} 2>&1; "
|
||||
f"status=$?; printf '%s' \"$status\" > {shlex.quote(str(exit_code_path))}"
|
||||
# Avoid `status=$?`: `status` is a read-only special parameter
|
||||
# in zsh, and this command string is copied/reused in macOS/zsh
|
||||
# operator wrappers. Keep the template zsh-safe even though this
|
||||
# specific subprocess currently runs under bash.
|
||||
f"rc=$?; printf '%s' \"$rc\" > {shlex.quote(str(exit_code_path))}"
|
||||
)
|
||||
setsid_bin = shutil.which("setsid")
|
||||
if setsid_bin:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue