Download the stage0 dotnet tools from the beta feed for unix.
Set the correct channel so that the stage0 binaries are downloaded correctly. ** This commit cannot be directly merged from the release branch to the master branch **
This commit is contained in:
parent
a8aea60f14
commit
137336d0d0
5 changed files with 9 additions and 6 deletions
|
@ -54,6 +54,8 @@ exec "$MY_TARGET" "$@"
|
|||
EOF
|
||||
)
|
||||
|
||||
[ -z "$CHANNEL" ] && CHANNEL="dev"
|
||||
|
||||
#set default prefix (PREFIX is a fairly standard env-var, but we also want to allow the use the specific "DOTNET_INSTALL_DIR" one)
|
||||
if [ ! -z "$DOTNET_INSTALL_DIR" ]; then
|
||||
PREFIX=$DOTNET_INSTALL_DIR
|
||||
|
@ -171,13 +173,13 @@ install_dotnet()
|
|||
fi
|
||||
local os=$(current_os)
|
||||
local installLocation="$PREFIX/share/dotnet"
|
||||
local dotnet_url="https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest"
|
||||
local dotnet_url="https://dotnetcli.blob.core.windows.net/dotnet/$CHANNEL/Binaries/Latest"
|
||||
local dotnet_filename="dotnet-$os-x64.latest.tar.gz"
|
||||
|
||||
if [ "$RELINK" = "0" ]; then
|
||||
if [ "$FORCE" = "0" ]; then
|
||||
# Check if we need to bother
|
||||
local remoteData="$(curl -s https://dotnetcli.blob.core.windows.net/dotnet/dev/dnvm/latest.$os.version)"
|
||||
local remoteData="$(curl -s https://dotnetcli.blob.core.windows.net/dotnet/$CHANNEL/dnvm/latest.$os.version)"
|
||||
[ $? != 0 ] && say_err "Unable to determine latest version." && return 1
|
||||
|
||||
local remoteVersion=$(IFS="\n" && echo $remoteData | tail -n 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue