summaryrefslogtreecommitdiff
path: root/scripts/drupal.sh
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-06 13:48:10 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-06 13:48:10 +0000
commitfee10f55e29ce88b0078eecc46a17de30b906739 (patch)
treed0f91f5936ad2f1d2c3cb1fbcb8be28133138386 /scripts/drupal.sh
parenta05ec189961557ea9333c89a00ab4d220d25abc6 (diff)
downloadbrdo-fee10f55e29ce88b0078eecc46a17de30b906739.tar.gz
brdo-fee10f55e29ce88b0078eecc46a17de30b906739.tar.bz2
- Patch #511022 by gordon: some drupal.sh fixes for Drush.
Diffstat (limited to 'scripts/drupal.sh')
-rwxr-xr-xscripts/drupal.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/drupal.sh b/scripts/drupal.sh
index 5bc254365..477fc2c4b 100755
--- a/scripts/drupal.sh
+++ b/scripts/drupal.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/php
+#!/usr/bin/env php
<?php
// $Id$
@@ -66,6 +66,7 @@ $_SERVER['SERVER_SOFTWARE'] = 'PHP CLI';
$_SERVER['REQUEST_METHOD'] = 'GET';
$_SERVER['QUERY_STRING'] = '';
$_SERVER['PHP_SELF'] = $_SERVER['REQUEST_URI'] = '/';
+$_SERVER['HTTP_USER_AGENT'] = 'console';
// toggle verbose mode
if (in_array('--verbose', $_SERVER['argv'])) {