5f7862
From 3ab96a9d055e097860a6b18dce5242d231e39235 Mon Sep 17 00:00:00 2001
5f7862
From: Carl George <carl@george.computer>
5f7862
Date: Wed, 31 Mar 2021 16:26:09 -0500
5f7862
Subject: [PATCH] Also use uglifyjs on CentOS Stream 8
5f7862
5f7862
This conditional was recently changed to match VERSION_ID "8." to only
5f7862
apply to RHEL 8 releases, but it should also match CentOS Stream 8 which
5f7862
has VERSION_ID "8".
5f7862
5f7862
https://pagure.io/freeipa/c/43f344b931db3f72f50e1620443be9f21623e29a
5f7862
---
5f7862
 install/ui/util/compile.sh | 2 +-
5f7862
 1 file changed, 1 insertion(+), 1 deletion(-)
5f7862
5f7862
diff --git a/install/ui/util/compile.sh b/install/ui/util/compile.sh
5f7862
index 01a4e6e74..8f29b89ec 100755
5f7862
--- a/install/ui/util/compile.sh
5f7862
+++ b/install/ui/util/compile.sh
5f7862
@@ -112,7 +112,7 @@ fi
5f7862
 echo "Minimizing: $RDIR/$RELEASE/$LAYER.js"
5f7862
 echo "Target file: $OUTPUT_FILE"
5f7862
 if [[ ("$ID" == "rhel" || "$ID_LIKE" =~ "rhel")
5f7862
-      && "$VERSION_ID" =~ "8." ]];
5f7862
+      && ("$VERSION_ID" =~ "8." || "$VERSION_ID" == "8") ]];
5f7862
 then
5f7862
     echo "Minifier: uglifyjs"
5f7862
     uglifyjs < $RDIR/$RELEASE/$LAYER.js > $OUTPUT_FILE
5f7862
-- 
5f7862
2.30.2
5f7862