bash file to update .net core daily build, to be used using `dn-pre`. ASSUMES: you already have ~/bin folder and included in the PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
rm -rf ~/bin/dotnet-daily || true | |
mkdir ~/bin/dotnet-daily || true | |
wget -P ~/bin/dotnet-daily/ https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh | |
chmod +x ~/bin/dotnet-daily/dotnet-install.sh | |
~/bin/dotnet-daily/dotnet-install.sh -c main -v latest --install-dir ~/bin/dotnet-daily | |
#wget -P ~/bin/dotnet-daily/ https://aka.ms/dotnet/net6/dev/Sdk/dotnet-sdk-linux-x64.tar.gz | |
#tar -xzvf ~/bin/dotnet-daily/dotnet-sdk-linux-x64.tar.gz -C ~/bin/dotnet-daily | |
#echo "Checksum -> " $(sha1sum ~/bin/dotnet-daily/dotnet-sdk-linux-x64.tar.gz) | |
#rm ~/bin/dotnet-daily/dotnet-sdk-linux-x64.tar.gz | |
rm ~/bin/dotnet-daily/dotnet-install.sh | |
rm ~/bin/dn-pre || true | |
ln -s ~/bin/dotnet-daily/dotnet ~/bin/dn-pre | |
# bunch of symlinks | |
sudo rm /usr/share/dotnet/dotnet-pre || true | |
sudo ln -s ~/bin/dotnet-daily/dotnet /usr/share/dotnet/dotnet-pre | |
sudo rm /usr/bin/dotnet-pre || true | |
sudo ln -s ~/bin/dotnet-daily/dotnet /usr/bin/dotnet-pre | |
echo "Done, use dotnet-pre or dn-pre to use the latest .NET Core SDK Daily Build" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment