Skip to content

Commit cc0632a

Browse files
author
Chris Maunder
committed
Corrections to macOS .NET install script
1 parent c22d7a5 commit cc0632a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

devops/install/dotnet-install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,11 @@ get_user_install_path() {
926926
if [ ! -z "${DOTNET_INSTALL_DIR:-}" ]; then
927927
echo "$DOTNET_INSTALL_DIR"
928928
else
929-
echo "$HOME/.dotnet"
929+
if [ "$normalized_os" == "osx" ]; then
930+
echo "/usr/local/share/dotnet"
931+
else
932+
echo "$HOME/.dotnet"
933+
fi
930934
fi
931935
return 0
932936
}

src/SDK/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ fi
111111
# Setup .NET for the server, the SDK Utilities, and any .NET modules that may
112112
# need it
113113
if [ "$executionEnvironment" = "Development" ]; then
114-
setupDotNet "$serverDotNetVersion" "aspnetcore"
115114
setupDotNet "$serverDotNetVersion" "sdk"
115+
setupDotNet "$serverDotNetVersion" "aspnetcore"
116116
else
117117
setupDotNet "$serverDotNetVersion" "aspnetcore"
118118
fi

0 commit comments

Comments
 (0)