aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xbrp-mangle-shebangs2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d4f0e03..3213546 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- brp-mangle-shebangs: also mangle shebangs of JavaScript executables (rhbz#1998924)
- macros: drop unused %_sys_macros_dir and %build_sysmacrospath()
Version 2.70 - 7 January 2023, by Jani Välimaa
diff --git a/brp-mangle-shebangs b/brp-mangle-shebangs
index ef85ee4..ab7af60 100755
--- a/brp-mangle-shebangs
+++ b/brp-mangle-shebangs
@@ -76,7 +76,7 @@ cd "$RPM_BUILD_ROOT"
# (Take care to exclude filenames which would mangle "file" output).
find -executable -type f ! -path '*:*' ! -path $'*\n*' \
| file -N --mime-type -f - \
-| grep -P ".+(?=: text/)" \
+| grep -P ".+(?=: (text/|application/javascript))" \
| {
fail=0
while IFS= read -r line; do