diff options
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | brp-mangle-shebangs | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ +- make brp-mangle-shebangs to not exit if 'read shebang_line < "$f"' + exits with a non-zero status. + Version 2.45 - 23 December 2019, by Thierry Vignaud - switch binary payload compression to Zstandard level 19 diff --git a/brp-mangle-shebangs b/brp-mangle-shebangs index 98990c0..4964c09 100755 --- a/brp-mangle-shebangs +++ b/brp-mangle-shebangs @@ -93,7 +93,7 @@ while IFS= read -r line; do fi - read shebang_line < "$f" + read shebang_line < "$f" ||: orig_shebang="${shebang_line#\#!}" if [ "$orig_shebang" = "$shebang_line" ]; then echo >&2 "*** WARNING: $f is executable but has no shebang, removing executable bit" |