Skip to content

Commit 11204b3

Browse files
authored
fix detect rhel release (#4393)
1 parent b323880 commit 11204b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function detect_platform_and_runtime_id ()
6565

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

0 commit comments

Comments
 (0)