mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-18 00:45:10 -05:00
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. Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Alexander Bokovoy
parent
8c681a494a
commit
6ae1a05ee1
@@ -111,7 +111,7 @@ fi
|
|||||||
# compile using python rjsmin on most platforms and uglify-js on RHEL 8
|
# compile using python rjsmin on most platforms and uglify-js on RHEL 8
|
||||||
echo "Minimizing: $RDIR/$RELEASE/$LAYER.js"
|
echo "Minimizing: $RDIR/$RELEASE/$LAYER.js"
|
||||||
echo "Target file: $OUTPUT_FILE"
|
echo "Target file: $OUTPUT_FILE"
|
||||||
if [ $ID = "rhel" ]; then
|
if [[ "$ID" == "rhel" ]] || [[ "$ID_LIKE" =~ "rhel" ]]; then
|
||||||
echo "Minifier: uglifyjs"
|
echo "Minifier: uglifyjs"
|
||||||
uglifyjs < $RDIR/$RELEASE/$LAYER.js > $OUTPUT_FILE
|
uglifyjs < $RDIR/$RELEASE/$LAYER.js > $OUTPUT_FILE
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user