function drush_return_status

8.0.x preflight.inc drush_return_status()
6.x bootstrap.inc drush_return_status()
7.x preflight.inc drush_return_status()
3.x drush.php drush_return_status()
4.x drush.php drush_return_status()
5.x bootstrap.inc drush_return_status()
master preflight.inc drush_return_status()
1 string reference to 'drush_return_status'
drush_shutdown in ./drush.php
Shutdown function for use while Drupal is bootstrapping and to return any registered errors.

File

./drush.php, line 184
drush is a PHP script implementing a command line shell for Drupal.

Code

function drush_return_status() {
  exit((drush_get_error()) ? DRUSH_FRAMEWORK_ERROR : DRUSH_SUCCESS);
}