mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
Only build the UI with uglifyjs on RHEL 8
The previous expression tested for RHEL or RHEL-like systems to use uglifyjs. Tighten that up to only RHEL 8 so future RHEL can use rjsmin. https://pagure.io/freeipa/issue/8669 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
parent
75c1b7ed34
commit
43f344b931
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user