Skip to content

Commit

Permalink
ShellCheck cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAllred committed Dec 1, 2023
1 parent 1a7dabe commit d8c5d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/install-dotnet8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8c5d4f

Please sign in to comment.