aboutsummaryrefslogtreecommitdiffstats
path: root/brp-mangle-shebangs
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2023-01-15 14:17:39 +0200
committerJani Välimaa <wally@mageia.org>2023-01-15 14:17:39 +0200
commitfaa53ec884b02c65603d2e5870ee7eddcecdeca6 (patch)
tree9c3146918d5e05d64a087ac50bdffa34b6c98957 /brp-mangle-shebangs
parent7130b539c9a86d6c5feadabacb9ca7fc0791ae42 (diff)
downloadrpm-setup-faa53ec884b02c65603d2e5870ee7eddcecdeca6.tar
rpm-setup-faa53ec884b02c65603d2e5870ee7eddcecdeca6.tar.gz
rpm-setup-faa53ec884b02c65603d2e5870ee7eddcecdeca6.tar.bz2
rpm-setup-faa53ec884b02c65603d2e5870ee7eddcecdeca6.tar.xz
rpm-setup-faa53ec884b02c65603d2e5870ee7eddcecdeca6.zip
brp-mangle-shebangs: also mangle shebangs of JavaScript executables (rhbz#1998924)
Diffstat (limited to 'brp-mangle-shebangs')
-rwxr-xr-xbrp-mangle-shebangs2
1 files changed, 1 insertions, 1 deletions
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