From 4aaff21f45c772a3a50d5d59f6e551e6a850d536 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Thu, 21 May 2026 17:06:20 -0600 Subject: [PATCH] fix: updated argc argument passing in run-tool and run-agent scripts --- assets/functions/scripts/run-agent.sh | 4 ++-- assets/functions/scripts/run-tool.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/functions/scripts/run-agent.sh b/assets/functions/scripts/run-agent.sh index acdfa94..ee1af7e 100644 --- a/assets/functions/scripts/run-agent.sh +++ b/assets/functions/scripts/run-agent.sh @@ -73,11 +73,11 @@ def to_args: to_entries | .[] | (.key | split("_") | join("-")) as $key | if .value | type == "array" then - .value | .[] | "--\($key) \(. | escape_shell_word)" + .value | .[] | "--\($key)=\(. | escape_shell_word)" elif .value | type == "boolean" then if .value then "--\($key)" else "" end else - "--\($key) \(.value | escape_shell_word)" + "--\($key)=\(.value | escape_shell_word)" end; [ to_args ] | join(" ") EOF diff --git a/assets/functions/scripts/run-tool.sh b/assets/functions/scripts/run-tool.sh index 75b72b9..c612273 100644 --- a/assets/functions/scripts/run-tool.sh +++ b/assets/functions/scripts/run-tool.sh @@ -70,11 +70,11 @@ def to_args: to_entries | .[] | (.key | split("_") | join("-")) as $key | if .value | type == "array" then - .value | .[] | "--\($key) \(. | escape_shell_word)" + .value | .[] | "--\($key)=\(. | escape_shell_word)" elif .value | type == "boolean" then if .value then "--\($key)" else "" end else - "--\($key) \(.value | escape_shell_word)" + "--\($key)=\(.value | escape_shell_word)" end; [ to_args ] | join(" ") EOF