Skip to content

Commit

Permalink
fix detect rhel release (#4393)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisRumyantsev committed Aug 16, 2023
1 parent b323880 commit 11204b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function detect_platform_and_runtime_id ()

if [ -e /etc/redhat-release ]; then
local redhatRelease=$(</etc/redhat-release)
if [[ $redhatRelease == "CentOS release 7."* || $redhatRelease == "Red Hat Enterprise Linux Server release 7."* ]]; then
if [[ $redhatRelease == *"release 7."* ]]; then
DETECTED_RUNTIME_ID='rhel.7.2-x64'
else
echo "RHEL supported only for version 7"
Expand Down

0 comments on commit 11204b3

Please sign in to comment.