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