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
#!/bin/bash | |
set -eu | |
rm -rf ~/bin/dotnet-daily || true | |
mkdir ~/bin/dotnet-daily || true | |
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/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