Add a work around to downloading an updated install script while it gets updated on the website.

This commit is contained in:
Livar Cunha 2018-06-28 15:22:18 -07:00
parent 3408f785e8
commit 46e0313f04

View file

@ -161,8 +161,9 @@ if [[ $archlower == 'arm'* ]]; then
INSTALL_ARCHITECTURE="x64" INSTALL_ARCHITECTURE="x64"
fi fi
# Workaround while the install script is not updated on the website.
if [ "$STAGE0_SOURCE_DIR" == "" ]; then if [ "$STAGE0_SOURCE_DIR" == "" ]; then
(set -x ; curl -sSL "https://dot.net/v1/dotnet-install.sh" | bash /dev/stdin --version "2.2.0-preview1-007799" --install-dir "$DOTNET_INSTALL_DIR" --architecture "$INSTALL_ARCHITECTURE" $LINUX_PORTABLE_INSTALL_ARGS) (set -x ; curl -sSL "https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.sh" | bash /dev/stdin --version "2.2.0-preview1-007799" --install-dir "$DOTNET_INSTALL_DIR" --architecture "$INSTALL_ARCHITECTURE" $LINUX_PORTABLE_INSTALL_ARGS)
else else
echo "Copying bootstrap cli from $STAGE0_SOURCE_DIR" echo "Copying bootstrap cli from $STAGE0_SOURCE_DIR"
cp -r $STAGE0_SOURCE_DIR/* "$DOTNET_INSTALL_DIR" cp -r $STAGE0_SOURCE_DIR/* "$DOTNET_INSTALL_DIR"