diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2019-12-23 16:02:28 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2019-12-23 16:02:47 +0100 |
commit | 79b7c83712f59282c61ceb33c0fedb087bc26530 (patch) | |
tree | 1254317552cbbf269123d0eeaab2ef9da8a82dad /brp-mangle-shebangs | |
parent | f87447dbe96a7a8a0685428ae31357689da833e3 (diff) | |
download | rpm-setup-79b7c83712f59282c61ceb33c0fedb087bc26530.tar rpm-setup-79b7c83712f59282c61ceb33c0fedb087bc26530.tar.gz rpm-setup-79b7c83712f59282c61ceb33c0fedb087bc26530.tar.bz2 rpm-setup-79b7c83712f59282c61ceb33c0fedb087bc26530.tar.xz rpm-setup-79b7c83712f59282c61ceb33c0fedb087bc26530.zip |
Make ambiguous python shebangs error
Diffstat (limited to 'brp-mangle-shebangs')
-rwxr-xr-x | brp-mangle-shebangs | 1 |
1 files changed, 1 insertions, 0 deletions
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" |