common: support disabling python shebang rewriting
useful if there are special python-containing shebangs that should not be rewritten, for example with Ghidra's embedded jython.
This commit is contained in:

committed by
classabbyamp

parent
5b210379b4
commit
58705ffcbf
@@ -12,6 +12,10 @@ hook() {
|
||||
pyver="$python_version"
|
||||
fi
|
||||
|
||||
if [ "$python_version" = ignore ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -n "$pyver" ]; then
|
||||
default_shebang="#!/usr/bin/python${pyver%.*}"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user