fix: updated argc argument passing in run-tool and run-agent scripts
This commit is contained in:
@@ -73,11 +73,11 @@ def to_args:
|
|||||||
to_entries | .[] |
|
to_entries | .[] |
|
||||||
(.key | split("_") | join("-")) as $key |
|
(.key | split("_") | join("-")) as $key |
|
||||||
if .value | type == "array" then
|
if .value | type == "array" then
|
||||||
.value | .[] | "--\($key) \(. | escape_shell_word)"
|
.value | .[] | "--\($key)=\(. | escape_shell_word)"
|
||||||
elif .value | type == "boolean" then
|
elif .value | type == "boolean" then
|
||||||
if .value then "--\($key)" else "" end
|
if .value then "--\($key)" else "" end
|
||||||
else
|
else
|
||||||
"--\($key) \(.value | escape_shell_word)"
|
"--\($key)=\(.value | escape_shell_word)"
|
||||||
end;
|
end;
|
||||||
[ to_args ] | join(" ")
|
[ to_args ] | join(" ")
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -70,11 +70,11 @@ def to_args:
|
|||||||
to_entries | .[] |
|
to_entries | .[] |
|
||||||
(.key | split("_") | join("-")) as $key |
|
(.key | split("_") | join("-")) as $key |
|
||||||
if .value | type == "array" then
|
if .value | type == "array" then
|
||||||
.value | .[] | "--\($key) \(. | escape_shell_word)"
|
.value | .[] | "--\($key)=\(. | escape_shell_word)"
|
||||||
elif .value | type == "boolean" then
|
elif .value | type == "boolean" then
|
||||||
if .value then "--\($key)" else "" end
|
if .value then "--\($key)" else "" end
|
||||||
else
|
else
|
||||||
"--\($key) \(.value | escape_shell_word)"
|
"--\($key)=\(.value | escape_shell_word)"
|
||||||
end;
|
end;
|
||||||
[ to_args ] | join(" ")
|
[ to_args ] | join(" ")
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user