summaryrefslogtreecommitdiff
path: root/scripts/drupal.sh
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-02-17 20:09:52 +0000
committerDries Buytaert <dries@buytaert.net>2008-02-17 20:09:52 +0000
commit455e18c686bf15e464f176d3d7b8d11e6cefefbc (patch)
tree2084bd325ed6433446f98f4189c0b8efee037b9b /scripts/drupal.sh
parent70eb02dfc98f2bad1176acd5b9061a0a12a4e5fd (diff)
downloadbrdo-455e18c686bf15e464f176d3d7b8d11e6cefefbc.tar.gz
brdo-455e18c686bf15e464f176d3d7b8d11e6cefefbc.tar.bz2
- Patch #222236 by Rob Loach: drupal.sh with no arguments now prints the help text instead of giving an error.
Diffstat (limited to 'scripts/drupal.sh')
-rwxr-xr-xscripts/drupal.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/drupal.sh b/scripts/drupal.sh
index c6ee7261d..e94d9e9ca 100755
--- a/scripts/drupal.sh
+++ b/scripts/drupal.sh
@@ -14,7 +14,7 @@
*/
$script = basename(array_shift($_SERVER['argv']));
-if (in_array('--help', $_SERVER['argv'])) {
+if (in_array('--help', $_SERVER['argv']) || empty($_SERVER['argv'])) {
echo <<<EOF
Execute a Drupal page from the shell.