4 ms·
In some cases the env shebang is basically mandatory. If you use virtualenv in a Jenkins job's workspace with a long job name, you can end up with shebangs that
by 0xbadcafebee 5y ago
In some cases the env shebang is basically mandatory. If you use virtualenv in a Jenkins job's workspace with a long job name, you can end up with shebangs that are longer than the kernel can execute (about 127 characters on most systems[1]). The solution is to rewrite the virtualenv-created scripts to use the env shebang, and set the PATH to the virtualenv bin directory before executing the scripts.
[1] https://stackoverflow.com/questions/10813538/shebang-line-limit-in-bash-and-linux-kernel https://stackoverflow.com/questions/10813538/shebang-line-li...