Skip to content

Commit

Permalink
Update DevOps.ServiceConnections.ps1 with fix for issue #106 (#108)
Browse files Browse the repository at this point in the history
* Update DevOps.ServiceConnections.ps1 with fix for issue #106

Utilized "replace" method to remove undue backslashes from the export function's resultant filename.
  • Loading branch information
moulincourt authored Jan 15, 2024
1 parent 1f73149 commit bad43bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function Export-AzDevOpsServiceConnections {
Write-Output $serviceConnection
} else {
Write-Verbose "Exporting service connection $($serviceConnection.name) as file $($serviceConnection.name).ado.sc.json"
$serviceConnection | ConvertTo-Json -Depth 100 | Out-File "$OutputPath/$($serviceConnection.name).ado.sc.json"
$serviceConnection | ConvertTo-Json -Depth 100 | Out-File "$OutputPath/$($serviceConnection.name.replace('/','')).ado.sc.json"
}
}
}
Expand Down

0 comments on commit bad43bd

Please sign in to comment.