Fix Start-PSBootstrap install_name_tool call on macOS (#2601)

This commit is contained in:
Sergei Vorobev authored and Dongbo Wang committed 2016-11-03 14:30:11 -07:00
1 parent 9ccd778ed6
commit a3afeee54e
1 file changed
+1 -1
+1 -1
View File
@@ -885,7 +885,7 @@ function Install-Dotnet {
# This is the library shipped with .NET Core
# This is allowed to fail as the user may have installed other versions of dotnet
Write-Warning ".NET Core links the incorrect OpenSSL, correcting .NET CLI libraries..."
find $env:HOME/.dotnet -name System.Security.Cryptography.Native.dylib | % { sudo install_name_tool -add_rpath /usr/local/opt/openssl/lib }
find $env:HOME/.dotnet -name System.Security.Cryptography.Native.dylib | % { sudo install_name_tool -add_rpath /usr/local/opt/openssl/lib $_ }
}
} elseif ($IsWindows) {
Remove-Item -ErrorAction SilentlyContinue -Recurse -Force ~\AppData\Local\Microsoft\dotnet