mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(clawdock): scope confirmation response (#103837)
This commit is contained in:
committed by
GitHub
parent
5e250aac74
commit
050177c784
@@ -122,7 +122,7 @@ _clawdock_ensure_dir() {
|
||||
fi
|
||||
|
||||
# Auto-detect from common paths
|
||||
local candidate found_path=""
|
||||
local candidate found_path="" response
|
||||
for candidate in "${CLAWDOCK_COMMON_PATHS[@]}"; do
|
||||
if [[ -f "${candidate}/docker-compose.yml" ]]; then
|
||||
found_path="$candidate"
|
||||
|
||||
@@ -42,10 +42,12 @@ describe("scripts/clawdock/clawdock-helpers.sh", () => {
|
||||
[
|
||||
'path_before="$PATH"',
|
||||
'candidate="caller-value"',
|
||||
'response="caller-response"',
|
||||
"source scripts/clawdock/clawdock-helpers.sh || exit 1",
|
||||
'_clawdock_ensure_dir < "$CLAWDOCK_CONFIRM_FILE" || exit 1',
|
||||
'[[ "$PATH" == "$path_before" ]] || exit 1',
|
||||
'[[ "$candidate" == "caller-value" ]] || exit 1',
|
||||
'[[ "$response" == "caller-response" ]] || exit 1',
|
||||
'[[ "$CLAWDOCK_DIR" == "$HOME/openclaw" ]] || exit 1',
|
||||
].join("\n"),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user