From 4a444a59780f55c6ad412c49abf97eb1201927a5 Mon Sep 17 00:00:00 2001 From: Daniel Olshansky Date: Tue, 10 Feb 2026 11:48:20 -0500 Subject: [PATCH] Resolve comments from greptile-apps --- scripts/shell-helpers/clawdock-helpers.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/shell-helpers/clawdock-helpers.sh b/scripts/shell-helpers/clawdock-helpers.sh index aaac4ff28bd..92ab3cfb613 100755 --- a/scripts/shell-helpers/clawdock-helpers.sh +++ b/scripts/shell-helpers/clawdock-helpers.sh @@ -104,7 +104,7 @@ _clawdock_ensure_dir() { if [[ ! -d "${HOME}/.clawdock" ]]; then /bin/mkdir -p "${HOME}/.clawdock" fi - print "CLAWDOCK_DIR=\"$CLAWDOCK_DIR\"" > "$CLAWDOCK_CONFIG" + echo "CLAWDOCK_DIR=\"$CLAWDOCK_DIR\"" > "$CLAWDOCK_CONFIG" echo "✅ Saved to $CLAWDOCK_CONFIG" echo "" return 0 @@ -201,8 +201,8 @@ clawdock-fix-token() { echo "📝 Setting token: ${token:0:20}..." - _clawdock_compose exec openclaw-gateway \ - bash -c "./openclaw.mjs config set gateway.remote.token '$token' && ./openclaw.mjs config set gateway.auth.token '$token'" 2>&1 | grep -v "^WARN\|^time=" + _clawdock_compose exec -e "TOKEN=$token" openclaw-gateway \ + bash -c './openclaw.mjs config set gateway.remote.token "$TOKEN" && ./openclaw.mjs config set gateway.auth.token "$TOKEN"' 2>&1 | grep -v "^WARN\|^time=" echo "🔍 Verifying token was saved..." local saved_token=$(_clawdock_compose exec openclaw-gateway \ @@ -255,7 +255,7 @@ clawdock-devices() { _clawdock_compose exec openclaw-gateway \ node dist/index.js devices list 2>&1 | grep -v "^WARN\|^time=" - local exit_code=$? + local exit_code=${PIPESTATUS[0]} if [ $exit_code -ne 0 ]; then echo "" echo -e "${_CLR_CYAN}💡 If you see token errors above:${_CLR_RESET}"