cac727
From ae328c389488daff0f2b4f35065d2c14725b9e0b Mon Sep 17 00:00:00 2001
cac727
From: Carl George <carl@george.computer>
cac727
Date: Fri, 18 Dec 2020 23:27:26 -0600
cac727
Subject: [PATCH] Use uglifyjs on CentOS too
cac727
cac727
Only checking for ID to equal "rhel" causes build failures on CentOS
cac727
Stream.  Instead check both ID and ID_LIKE.  This should also work later
cac727
on when rebuilds like CentOS Linux get this update.
cac727
---
cac727
 install/ui/util/compile.sh | 2 +-
cac727
 1 file changed, 1 insertion(+), 1 deletion(-)
cac727
cac727
diff --git a/install/ui/util/compile.sh b/install/ui/util/compile.sh
cac727
index 49c9dd875..435dc14f1 100755
cac727
--- a/install/ui/util/compile.sh
cac727
+++ b/install/ui/util/compile.sh
cac727
@@ -111,7 +111,7 @@ fi
cac727
 # compile using python rjsmin on most platforms and uglify-js on RHEL 8
cac727
 echo "Minimizing: $RDIR/$RELEASE/$LAYER.js"
cac727
 echo "Target file: $OUTPUT_FILE"
cac727
-if [ $ID = "rhel" ]; then
cac727
+if [[ "$ID" == "rhel" ]] || [[ "$ID_LIKE" =~ "rhel" ]]; then
cac727
     echo "Minifier: uglifyjs"
cac727
     uglifyjs < $RDIR/$RELEASE/$LAYER.js > $OUTPUT_FILE
cac727
 else
cac727
-- 
cac727
2.29.2
cac727