diff --git a/install/ui/util/compile.sh b/install/ui/util/compile.sh index 435dc14f1..0bad570fb 100755 --- a/install/ui/util/compile.sh +++ b/install/ui/util/compile.sh @@ -111,7 +111,9 @@ 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" ]] || [[ "$ID_LIKE" =~ "rhel" ]]; then +if [[ ("$ID" == "rhel" || "$ID_LIKE" =~ "rhel") + && "$VERSION_ID" =~ "8." ]]; +then echo "Minifier: uglifyjs" uglifyjs < $RDIR/$RELEASE/$LAYER.js > $OUTPUT_FILE else