summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-packages.sh2
-rwxr-xr-xbuild.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/build-packages.sh b/build-packages.sh
index 4821386090..ed4dec9643 100755
--- a/build-packages.sh
+++ b/build-packages.sh
@@ -16,7 +16,7 @@ initHostDistroRid()
if [ "$__HostOS" == "Linux" ]; then
if [ -e /etc/os-release ]; then
source /etc/os-release
- if [[ $ID == "alpine" ]]; then
+ if [[ $ID == "alpine" || $ID == "rhel"]]; then
# remove the last version digit
VERSION_ID=${VERSION_ID%.*}
fi
diff --git a/build.sh b/build.sh
index 865f0feebf..ad4a6e17a1 100755
--- a/build.sh
+++ b/build.sh
@@ -61,7 +61,7 @@ initHostDistroRid()
if [ "$__HostOS" == "Linux" ]; then
if [ -e /etc/os-release ]; then
source /etc/os-release
- if [[ $ID == "alpine" ]]; then
+ if [[ $ID == "alpine" || $ID == "rhel"]]; then
# remove the last version digit
VERSION_ID=${VERSION_ID%.*}
fi