Skip to content

Commit

Permalink
Fix issue #12266: powershellIgnoreLASTEXITCODE not working (#12286)
Browse files Browse the repository at this point in the history
  • Loading branch information
jalajmsft authored Feb 4, 2020
1 parent 7454062 commit 2ca8d92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tasks/AzureCLIV2/src/Utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Utility {
}
contents.push(content.trim());

let powerShellIgnoreLASTEXITCODE: string = tl.getInput('powerShellIgnoreLASTEXITCODE', false);
let powerShellIgnoreLASTEXITCODE: boolean = tl.getBoolInput('powerShellIgnoreLASTEXITCODE', false);
if (!powerShellIgnoreLASTEXITCODE) {
contents.push(`if (!(Test-Path -LiteralPath variable:\LASTEXITCODE)) {`);
contents.push(` Write-Host '##vso[task.debug]$LASTEXITCODE is not set.'`);
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureCLIV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"version": {
"Major": 2,
"Minor": 0,
"Patch": 6
"Patch": 7
},
"minimumAgentVersion": "2.0.0",
"instanceNameFormat": "Azure CLI $(scriptPath)",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureCLIV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"version": {
"Major": 2,
"Minor": 0,
"Patch": 6
"Patch": 7
},
"minimumAgentVersion": "2.0.0",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
Expand Down

0 comments on commit 2ca8d92

Please sign in to comment.