Skip to content

Commit

Permalink
Add microsoft yum repo
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Sep 29, 2023
1 parent 7c18c7e commit 1a0fd1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/ci_build/github/linux/docker/scripts/install_dotnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
set -e -x

if [ -f /etc/redhat-release ]; then
yum install -y dotnet-sdk-6.0
rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
yum install -y dotnet-sdk-6.0
elif [ -f /etc/os-release ]; then
# 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)

Check warning on line 9 in tools/ci_build/github/linux/docker/scripts/install_dotnet.sh

View workflow job for this annotation

GitHub Actions / shellcheck

[shellcheck] tools/ci_build/github/linux/docker/scripts/install_dotnet.sh#L9 <ShellCheck.SC2155>

Declare and assign separately to avoid masking return values.
Raw output
./tools/ci_build/github/linux/docker/scripts/install_dotnet.sh:9:11: warning: Declare and assign separately to avoid masking return values. (ShellCheck.SC2155)
Expand Down

0 comments on commit 1a0fd1f

Please sign in to comment.