From 66f6d71ffa3420ddfd68301aa3191eb07e8a66fa Mon Sep 17 00:00:00 2001 From: Nathaniel Kelner Date: Fri, 13 Feb 2026 09:54:41 -0500 Subject: [PATCH] Update clawdock-helpers.sh compatibility with Zsh Unlike Bash, Zsh has several "special" readonly variables (status, pipestatus, etc.) that the shell manages automatically. Shadowing them with local declarations triggers an error. --- scripts/shell-helpers/clawdock-helpers.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/shell-helpers/clawdock-helpers.sh b/scripts/shell-helpers/clawdock-helpers.sh index 6054470607..b076fa9395 100755 --- a/scripts/shell-helpers/clawdock-helpers.sh +++ b/scripts/shell-helpers/clawdock-helpers.sh @@ -275,11 +275,11 @@ clawdock-dashboard() { _clawdock_ensure_dir || return 1 echo "🦞 Getting dashboard URL..." - local output status url + local output exit_status url output=$(_clawdock_compose run --rm openclaw-cli dashboard --no-open 2>&1) - status=$? + exit_status=$? url=$(printf "%s\n" "$output" | _clawdock_filter_warnings | grep -o 'http[s]\?://[^[:space:]]*' | head -n 1) - if [[ $status -ne 0 ]]; then + if [[ $exit_status -ne 0 ]]; then echo "❌ Failed to get dashboard URL" echo -e " Try restarting: $(_cmd clawdock-restart)" return 1 @@ -304,11 +304,11 @@ clawdock-devices() { _clawdock_ensure_dir || return 1 echo "🔍 Checking device pairings..." - local output status + local output exit_status output=$(_clawdock_compose exec openclaw-gateway node dist/index.js devices list 2>&1) - status=$? + exit_status=$? printf "%s\n" "$output" | _clawdock_filter_warnings - if [ $status -ne 0 ]; then + if [ $exit_status -ne 0 ]; then echo "" echo -e "${_CLR_CYAN}💡 If you see token errors above:${_CLR_RESET}" echo -e " 1. Verify token is set: $(_cmd clawdock-token)"