projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yaffs site version 1.1
[yaffs-website]
/
vendor
/
drush
/
drush
/
commands
/
core
/
init.drush.inc
diff --git
a/vendor/drush/drush/commands/core/init.drush.inc
b/vendor/drush/drush/commands/core/init.drush.inc
index 7c82b87e1d69b3fef7905f4ca93776ac25e855a7..183a41b5cfa1c030c88b66fb27078fca5911479f 100644
(file)
--- a/
vendor/drush/drush/commands/core/init.drush.inc
+++ b/
vendor/drush/drush/commands/core/init.drush.inc
@@
-66,7
+66,7
@@
function drush_init_core_init() {
if (!is_file($drush_bashrc)) {
copy($example_bashrc, $drush_bashrc);
$pattern = basename($drush_bashrc);
if (!is_file($drush_bashrc)) {
copy($example_bashrc, $drush_bashrc);
$pattern = basename($drush_bashrc);
- $bashrc_additions["%$pattern%"] = "
# Include Drush bash customizations.\n
". drush_bash_addition($drush_bashrc);
+ $bashrc_additions["%$pattern%"] = "
\n# Include Drush bash customizations.
". drush_bash_addition($drush_bashrc);
drush_log(dt("Copied example Drush bash configuration file to !path", array('!path' => $drush_bashrc)), LogLevel::OK);
}
drush_log(dt("Copied example Drush bash configuration file to !path", array('!path' => $drush_bashrc)), LogLevel::OK);
}
@@
-74,7
+74,7
@@
function drush_init_core_init() {
if (!is_file($drush_complete)) {
copy($example_complete, $drush_complete);
$pattern = basename($drush_complete);
if (!is_file($drush_complete)) {
copy($example_complete, $drush_complete);
$pattern = basename($drush_complete);
- $bashrc_additions["%$pattern%"] = "# Include Drush completion.\n". drush_bash_addition($drush_complete);
+ $bashrc_additions["%$pattern%"] = "
\n
# Include Drush completion.\n". drush_bash_addition($drush_complete);
drush_log(dt("Copied Drush completion file to !path", array('!path' => $drush_complete)), LogLevel::OK);
}
drush_log(dt("Copied Drush completion file to !path", array('!path' => $drush_complete)), LogLevel::OK);
}
@@
-83,7
+83,7
@@
function drush_init_core_init() {
if (!is_file($drush_prompt)) {
copy($example_prompt, $drush_prompt);
$pattern = basename($drush_prompt);
if (!is_file($drush_prompt)) {
copy($example_prompt, $drush_prompt);
$pattern = basename($drush_prompt);
- $bashrc_additions["%$pattern%"] = "# Include Drush prompt customizations.\n". drush_bash_addition($drush_prompt);
+ $bashrc_additions["%$pattern%"] = "
\n
# Include Drush prompt customizations.\n". drush_bash_addition($drush_prompt);
drush_log(dt("Copied example Drush prompt file to !path", array('!path' => $drush_prompt)), LogLevel::OK);
}
drush_log(dt("Copied example Drush prompt file to !path", array('!path' => $drush_prompt)), LogLevel::OK);
}
@@
-98,7
+98,7
@@
function drush_init_core_init() {
$drush_path = drush_find_path_to_drush($home);
$drush_path = preg_replace("%^" . preg_quote($home) . "/%", '$HOME/', $drush_path);
$drush_path = drush_find_path_to_drush($home);
$drush_path = preg_replace("%^" . preg_quote($home) . "/%", '$HOME/', $drush_path);
- $bashrc_additions["%$drush_path%"] = "# Path to Drush, added by 'drush init'.\nexport PATH=\"\$PATH:$drush_path\"\n\n";
+ $bashrc_additions["%$drush_path%"] = "
\n
# Path to Drush, added by 'drush init'.\nexport PATH=\"\$PATH:$drush_path\"\n\n";
}
// Modify the user's bashrc file, adding our customizations.
}
// Modify the user's bashrc file, adding our customizations.
@@
-164,6
+164,7
@@
function drush_find_path_to_drush($home) {
function drush_bash_addition($file) {
return <<<EOD
function drush_bash_addition($file) {
return <<<EOD
+
if [ -f "$file" ] ; then
source $file
fi
if [ -f "$file" ] ; then
source $file
fi