Skip to content

Commit

Permalink
Fix update sidecar script to work on non windows platforms (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
thhous-msft authored Oct 12, 2021
1 parent 86edb13 commit de756a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-sidecar.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ foreach ($File in $Files) {

# Perform fixups
$GenFiles = Get-ChildItem -Path "$OutputDir\*" -Recurse -File
$ToRemovePath = "$OutputDir\linux\"
$ToRemovePath = "$OutputDir$([IO.Path]::DirectorySeparatorChar)linux$([IO.Path]::DirectorySeparatorChar)"
foreach ($File in $GenFiles) {
((Get-Content -path $File -Raw).Replace($ToRemovePath, "")) | Set-Content -Path $File -NoNewline
}
Expand Down

0 comments on commit de756a6

Please sign in to comment.