File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ if [ "$aomp" != 1 ]; then
184184 test_package=$( ls -lt /var/cache/zypp/packages/rocm/ | grep -Eo -m1 openmp-extras-tests.* )
185185 cp /var/cache/zypp/packages/rocm/" $test_package " $tmpdir
186186 extract_rpm $test_package
187+ elif [[ " $os_name " =~ " Microsoft Azure Linux" ]]; then
188+ dnf download --destdir=$tmpdir openmp-extras-tests
189+ test_package=$( ls -lt $tmpdir | grep -Eo -m1 openmp-extras-tests.* )
190+ extract_rpm $test_package
187191 else
188192 echo " Error: Could not determine operating system name."
189193 exit 1
@@ -321,10 +325,10 @@ function getversion(){
321325 osname=$( cat /etc/os-release | grep -e ^NAME=)
322326 # Regex to cover single/multi version installs for deb/rpm.
323327 ompextrasregex=" openmp-extras-?[a-z]*-?\s*[0-9]+\.([0-9]+)\.([0-9]+)"
324- rpmregex=" Red Hat|CentOS|SLES|Oracle Linux Server"
328+ rpmregex=" Red Hat|CentOS|SLES|Oracle Linux Server|Microsoft Azure Linux "
325329 echo $osname
326330 if [[ " $osname " =~ $rpmregex ]]; then
327- echo " Red Hat/CentOS/SLES/Oracle found"
331+ echo " Red Hat/CentOS/SLES/Oracle/Microsoft Azure found"
328332 ompextraspkg=$( rpm -qa | grep openmp-extras | tail -1)
329333 elif [[ $osname =~ " Ubuntu" ]]; then
330334 echo " Ubuntu found"
You can’t perform that action at this time.
0 commit comments