aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xbrp-mangle-shebangs2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index fcddb4e..7c8eb6c 100644
--- a/NEWS
+++ b/NEWS
@@ -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"