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