Skip to content

Commit bad43bd

Browse files
authored
Update DevOps.ServiceConnections.ps1 with fix for issue #106 (#108)
* Update DevOps.ServiceConnections.ps1 with fix for issue #106 Utilized "replace" method to remove undue backslashes from the export function's resultant filename.
1 parent 1f73149 commit bad43bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PSRule.Rules.AzureDevOps/Functions/DevOps.ServiceConnections.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function Export-AzDevOpsServiceConnections {
153153
Write-Output $serviceConnection
154154
} else {
155155
Write-Verbose "Exporting service connection $($serviceConnection.name) as file $($serviceConnection.name).ado.sc.json"
156-
$serviceConnection | ConvertTo-Json -Depth 100 | Out-File "$OutputPath/$($serviceConnection.name).ado.sc.json"
156+
$serviceConnection | ConvertTo-Json -Depth 100 | Out-File "$OutputPath/$($serviceConnection.name.replace('/','')).ado.sc.json"
157157
}
158158
}
159159
}

0 commit comments

Comments
 (0)