aboutsummaryrefslogtreecommitdiffstats
path: root/brp-mangle-shebangs
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-24 11:51:33 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-24 11:52:29 +0200
commit191d8f04b4c826e0c5fbe509f150ef7198aaf715 (patch)
tree3e9cd4cf8842fc691c1345f3df7665092484bd8d /brp-mangle-shebangs
parent59d6a7396fe48c062d75f2fdf4165aa3592073cd (diff)
downloadrpm-setup-191d8f04b4c826e0c5fbe509f150ef7198aaf715.tar
rpm-setup-191d8f04b4c826e0c5fbe509f150ef7198aaf715.tar.gz
rpm-setup-191d8f04b4c826e0c5fbe509f150ef7198aaf715.tar.bz2
rpm-setup-191d8f04b4c826e0c5fbe509f150ef7198aaf715.tar.xz
rpm-setup-191d8f04b4c826e0c5fbe509f150ef7198aaf715.zip
do not fail when python call is ambiguous
Diffstat (limited to 'brp-mangle-shebangs')
-rwxr-xr-xbrp-mangle-shebangs1
1 files changed, 0 insertions, 1 deletions
diff --git a/brp-mangle-shebangs b/brp-mangle-shebangs
index 67a1a7d..ecf8ae7 100755
--- a/brp-mangle-shebangs
+++ b/brp-mangle-shebangs
@@ -130,7 +130,6 @@ 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"