diff --git a/lib/main.js b/lib/main.js index 8cb6677b..30e4c0f0 100644 --- a/lib/main.js +++ b/lib/main.js @@ -111,11 +111,11 @@ function main() { } }); } -function executeAzCliCommand(command, silent, options = {}, parameters = []) { +function executeAzCliCommand(command, silent, execOptions = {}, args = []) { return __awaiter(this, void 0, void 0, function* () { - options.silent = !!silent; + execOptions.silent = !!silent; try { - yield exec.exec(`"${azPath}" ${command}`, parameters, options); + yield exec.exec(`"${azPath}" ${command}`, args, execOptions); } catch (error) { throw new Error(error); diff --git a/src/main.ts b/src/main.ts index 4bcf3242..caf3856d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -96,10 +96,10 @@ async function main() { } } -async function executeAzCliCommand(command: string, silent?: boolean, options: any = {}, parameters: any = []) { - options.silent = !!silent; +async function executeAzCliCommand(command: string, silent?: boolean, execOptions: any = {}, args: any = []) { + execOptions.silent = !!silent; try { - await exec.exec(`"${azPath}" ${command}`, parameters, options); + await exec.exec(`"${azPath}" ${command}`, args, execOptions); } catch(error) { throw new Error(error);