diff --git a/Scripts/install-dotnet8.sh b/Scripts/install-dotnet8.sh index 96ff26f..0d2461c 100755 --- a/Scripts/install-dotnet8.sh +++ b/Scripts/install-dotnet8.sh @@ -9,10 +9,10 @@ apt-get upgrade -y apt-get install -y wget # Get Ubuntu version -declare repo_version=$(if command -v lsb_release &> /dev/null; then lsb_release -r -s; else grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'; fi) +repo_version=$(if command -v lsb_release &> /dev/null; then lsb_release -r -s; else grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'; fi) # Download Microsoft signing key and repository -wget https://packages.microsoft.com/config/ubuntu/$repo_version/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +wget https://packages.microsoft.com/config/ubuntu/"$repo_version"/packages-microsoft-prod.deb -O packages-microsoft-prod.deb # Install Microsoft signing key and repository dpkg -i packages-microsoft-prod.deb