From 2b124461dab07cf1d56e2caa80e51cf0adcb03cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Tue, 24 Dec 2019 12:59:20 +0200 Subject: brp-mangle-shebangs: do not exit if read has a non-zero status At least building texlive-texmf fails without this because brp-mangle-shebangs has -e in its shebang. -e Exit immediately if a command exits with a non-zero status. $ read shebang_line < BUILD/texlive-20190410-texmf/texmf-dist/doc/generic/pst-mirror/createEPS/test.sh $ echo $? 1 --- 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 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" -- cgit v1.2.1