From 79b7c83712f59282c61ceb33c0fedb087bc26530 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 23 Dec 2019 16:02:28 +0100 Subject: Make ambiguous python shebangs error --- brp-mangle-shebangs | 1 + 1 file changed, 1 insertion(+) (limited to 'brp-mangle-shebangs') diff --git a/brp-mangle-shebangs b/brp-mangle-shebangs index ecf8ae7..67a1a7d 100755 --- a/brp-mangle-shebangs +++ b/brp-mangle-shebangs @@ -130,6 +130,7 @@ while IFS= read -r -d $'\0' f; do if [ "$shebang" != "$py_shebang" ]; then echo >&2 "*** ERROR: ambiguous python shebang in $path: #!$orig_shebang. Change it to python3 (or python2) explicitly." + fail=1 elif [ "#!$shebang" != "#!$orig_shebang" ]; then sed -i -e "1c #!$shebang" "$f" echo "mangling shebang in $path from $orig_shebang to #!$shebang" -- cgit v1.2.1