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