3584ec4220
from the command line.
26 lines
1.5 KiB
Plaintext
26 lines
1.5 KiB
Plaintext
$OpenBSD: patch-includes_environment_inc,v 1.1.1.1 2009/07/27 16:25:55 espie Exp $
|
|
--- includes/environment.inc.orig Mon Jul 27 18:20:04 2009
|
|
+++ includes/environment.inc Mon Jul 27 18:20:34 2009
|
|
@@ -332,21 +332,6 @@ function _drush_bootstrap_drush_validate() {
|
|
return drush_bootstrap_error('DRUSH_SAFE_MODE', dt('PHP safe mode is activated. Drush requires that safe mode is disabled.'));
|
|
}
|
|
|
|
- // Attempt to download Console Table, via various methods.
|
|
- if (!file_exists(DRUSH_BASE_PATH . '/includes/table.inc')) {
|
|
- if ($file = @file_get_contents(DRUSH_TABLE_URL)) {
|
|
- @file_put_contents(DRUSH_BASE_PATH . '/includes/table.inc', $file);
|
|
- }
|
|
- if (!file_exists(DRUSH_BASE_PATH . '/includes/table.inc')) {
|
|
- drush_shell_exec("wget -q -O includes/table.inc " . DRUSH_TABLE_URL);
|
|
- if (!file_exists(DRUSH_BASE_PATH . '/includes/table.inc')) {
|
|
- drush_shell_exec("curl -s -o includes/table.inc " . DRUSH_TABLE_URL);
|
|
- if (!file_exists(DRUSH_BASE_PATH . '/includes/table.inc')) {
|
|
- return drush_bootstrap_error('DRUSH_TABLES_INC', dt('Drush needs a copy of the PEAR Console_Table library saved as Drush includes/table.inc. Drush attempted to download this automatically, but failed. To continue you will need to download the !version package from http://pear.php.net/package/Console_Table, extract, and move the file Table.php to includes/table.inc.', array('!version' => DRUSH_TABLE_VERSION)));
|
|
- }
|
|
- }
|
|
- }
|
|
- }
|
|
require_once DRUSH_BASE_PATH . '/includes/table.inc';
|
|
|
|
return TRUE;
|