From faa53ec884b02c65603d2e5870ee7eddcecdeca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Sun, 15 Jan 2023 14:17:39 +0200 Subject: brp-mangle-shebangs: also mangle shebangs of JavaScript executables (rhbz#1998924) --- brp-mangle-shebangs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'brp-mangle-shebangs') 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 -- cgit v1.2.1