Skip to content

Commit

Permalink
14091 Inline scripts not working in v5 with space in the filename #14091
Browse files Browse the repository at this point in the history
 (#15275)

* 14091 Inline scripts not working in v5 with space in the filename #14091

* Review changnes completed

* Review comments addressed

Co-authored-by: Philipson Joseph V <v.phiv@microsoft.com>
  • Loading branch information
PhilipsonJoseph and Philipson Joseph V authored Oct 19, 2021
1 parent 8c050f1 commit 82f880e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Tasks/AzurePowerShellV4/AzurePowerShell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ try {
$contents += "`$VerbosePreference = 'continue'"
}

$contents += ". $PSScriptRoot\UpdatePSModulePath.ps1 $UpdatePSModulePathArgument"
$contents += ". '$PSScriptRoot\UpdatePSModulePath.ps1' $UpdatePSModulePathArgument"
if ($scriptType -eq "InlineScript") {
$contents += "$scriptInline".Replace("`r`n", "`n").Replace("`n", "`r`n")
} else {
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzurePowerShellV4/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 4,
"Minor": 185,
"Minor": 193,
"Patch": 0
},
"releaseNotes": "Added support for Az Module and cross platform agents.",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AzurePowerShellV4/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 4,
"Minor": 184,
"Patch": 1
"Minor": 193,
"Patch": 0
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzurePowerShellV5/AzurePowerShell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ try
} else {
$CoreAzArgument = "-endpoint '$endpoint'"
}
$contents += ". $PSScriptRoot\CoreAz.ps1 $CoreAzArgument"
$contents += ". '$PSScriptRoot\CoreAz.ps1' $CoreAzArgument"

if ($scriptType -eq "InlineScript") {
$contents += "$scriptInline".Replace("`r`n", "`n").Replace("`n", "`r`n")
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzurePowerShellV5/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 5,
"Minor": 185,
"Minor": 193,
"Patch": 0
},
"releaseNotes": "Added support for Az Module and cross platform agents.",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AzurePowerShellV5/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 5,
"Minor": 184,
"Patch": 1
"Minor": 193,
"Patch": 0
},
"releaseNotes": "ms-resource:loc.releaseNotes",
"groups": [
Expand Down

0 comments on commit 82f880e

Please sign in to comment.