Skip to content

Commit 21abd8b

Browse files
authored
Merge pull request #65 from demisto/sk_fix_run_command
Fix Run And Debug To Run Commands With Arguments in XSOAR
2 parents 6e799ec + bb091bb commit 21abd8b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Change Log
22

33
# Unreleased
4+
- Fixed an issue where the **Run And Debug** command failed to execute properly when running commands with arguments in XSOAR.
45

56
# [0.7.4] (2024-11-26)
67

src/runAndDebug.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ function argumentSorted(_list: vscode.QuickPickItem[]): vscode.QuickPickItem[] {
8989
}
9090

9191
function runCommand(query: Map<string, string>) {
92-
let cmd = `"${query.get('cmd')}`
92+
let cmd = `${query.get('cmd')}`
9393
if (typeof cmd === 'string') {
9494
query.delete('cmd')
9595
const queryTest = Array.from(query.entries())
9696
queryTest.map((arg: [string, string]) => {
9797
cmd += ` ${arg[0]}=${arg[1]}`
9898
})
99-
const q: string[] = ['run', '-q', cmd + `"`]
99+
const q: string[] = ['run', '-q', cmd]
100100
TerminalManager.sendDemistoSDKCommand(q);
101101
}
102102
}

0 commit comments

Comments
 (0)