summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2009-07-06 13:48:10 (GMT)
committerDries Buytaert2009-07-06 13:48:10 (GMT)
commitfee10f55e29ce88b0078eecc46a17de30b906739 (patch)
treed0f91f5936ad2f1d2c3cb1fbcb8be28133138386
parenta05ec189961557ea9333c89a00ab4d220d25abc6 (diff)
- Patch #511022 by gordon: some drupal.sh fixes for Drush.
-rwxr-xr-xscripts/drupal.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/drupal.sh b/scripts/drupal.sh
index 5bc2543..477fc2c 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'])) {