function _drush_is_drush_shebang_line

8.0.x drush.inc _drush_is_drush_shebang_line($line)
6.x drush.inc _drush_is_drush_shebang_line($line)
7.x drush.inc _drush_is_drush_shebang_line($line)
4.x drush.inc _drush_is_drush_shebang_line($line)
5.x drush.inc _drush_is_drush_shebang_line($line)
master drush.inc _drush_is_drush_shebang_line($line)
2 calls to _drush_is_drush_shebang_line()

File

includes/drush.inc, line 545
The drush API implementation and helpers.

Code

function _drush_is_drush_shebang_line($line) {
  return ((substr($line, 0, 2) == '#!') && (strstr($line, 'drush') !== FALSE));
}