Currently there is no presubmit shebang check for scripts in factory repository.
The result is that the shebang lines in our repository are not consistent, and some even won't work on different environment.
Here is a table of the shebang used and their frequency:
#!/usr/bin/python -u 44
#!/usr/bin/python2 43
#!/usr/bin/env python2 1
#!/usr/bin/python 92
#!/usr/bin/python -Bu 6
#! /usr/bin/env python 1
#!/bin/sh 48
#!/usr/bin/env bash 1
#!/usr/bin/env python 105
#!/bin/bash 24
#!/bin/env python 6
#!/usr/bin/trial --temp-directory=/tmp/_trial_temp/ 4
We could add a presubmit check for this.
Comment 1 by hungte@chromium.org
, Jan 2 2018