This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Commit 6f27233 1 parent 7416a46 commit 6f27233 Copy full SHA for 6f27233
File tree 6 files changed +14
-9
lines changed
6 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 39
39
<exec dir =" ${repo.root}" command =" echo '0' >> ${blt.config-files.schema-version}" checkreturn =" true" logoutput =" true" passthru =" false" level =" ${blt.exec_level}" />
40
40
</then >
41
41
</if >
42
- <exec dir =" ${repo.root}" command =" cat ${blt.config-files.schema-version}" outputProperty =" blt.schema-version" checkreturn =" true" logoutput =" false" level =" ${blt.exec_level}" />
42
+ <exec dir =" ${repo.root}" command =" cat ' ${blt.config-files.schema-version}' " outputProperty =" blt.schema-version" checkreturn =" true" logoutput =" false" level =" ${blt.exec_level}" />
43
43
<!-- Send errors to /dev/null, for environments like ACE without composer. -->
44
44
<exec dir =" ${repo.root}" command =" composer info acquia/blt --no-ansi 2> /dev/null | grep versions | awk '{print $4}'" outputProperty =" blt.version" logoutput =" false" checkreturn =" true" level =" ${blt.exec_level}" />
45
45
Original file line number Diff line number Diff line change @@ -68,12 +68,11 @@ protected function executeDoctorInsideVm() {
68
68
* The command result.
69
69
*/
70
70
protected function executeDoctorOnHost ($ alias ) {
71
- $ include_dir = $ this ->getConfigValue ('blt.root ' ) . '/drush ' ;
72
71
$ result = $ this ->taskDrush ()
73
72
->drush ("blt-doctor " )
74
73
->alias ($ alias )
75
74
->uri ("" )
76
- ->includePath ($ include_dir )
75
+ ->includePath ($ this -> getConfigValue ( ' blt.root ' ) . ' /drush ' )
77
76
->run ();
78
77
79
78
return $ result ;
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ protected function launchPhantomJs() {
171
171
}
172
172
$ this ->killPhantomJs ();
173
173
$ this ->say ("Launching PhantomJS GhostDriver. " );
174
- $ this ->taskExec ("{$ this ->getConfigValue ('composer.bin ' )}/phantomjs " )
174
+ $ this ->taskExec ("' {$ this ->getConfigValue ('composer.bin ' )}/phantomjs' " )
175
175
->option ("webdriver " , 4444 )
176
176
->setVerbosityThreshold (VerbosityThresholdInterface::VERBOSITY_VERBOSE )
177
177
->background ()
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function drush($command) {
80
80
if (!empty ($ drush_alias )) {
81
81
$ drush_alias = "@ $ drush_alias " ;
82
82
}
83
- $ process_executor = Robo::process (new Process ("$ bin/drush $ drush_alias $ command " ));
83
+ $ process_executor = Robo::process (new Process ("' $ bin/drush' $ drush_alias $ command " ));
84
84
return $ process_executor ->dir ($ this ->getConfigValue ('docroot ' ))
85
85
->interactive (FALSE )
86
86
->printOutput (FALSE )
Original file line number Diff line number Diff line change @@ -200,7 +200,13 @@ public function includePath($path) {
200
200
* Sets up drush defaults using config.
201
201
*/
202
202
protected function init () {
203
- $ this ->executable = $ this ->getConfig ()->get ('drush.bin ' ) ?: 'drush ' ;
203
+ if ($ this ->getConfig ()->get ('drush.bin ' )) {
204
+ $ this ->executable = str_replace (' ' , '\\ ' , $ this ->getConfig ()->get ('drush.bin ' ));
205
+ }
206
+ else {
207
+ $ this ->executable = 'drush ' ;
208
+ }
209
+
204
210
if (!isset ($ this ->dir )) {
205
211
$ this ->dir ($ this ->getConfig ()->get ('drush.dir ' ));
206
212
}
Original file line number Diff line number Diff line change 28
28
# `../vendor/bin/drush.launcher --local $@` is a common variant for
29
29
# composer-managed Drupal sites.
30
30
#
31
- DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
31
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
32
32
cd " ` dirname $0 ` "
33
33
34
- if [ ! -f ${DIR} /vendor/drush/drush/drush.launcher ]; then
34
+ if [ ! -f " ${DIR} /vendor/drush/drush/drush.launcher" ]; then
35
35
echo >&2 " Drush was not found in this project's vendor directory. You can install it by typing:"
36
36
echo >&2 " composer install"
37
37
exit 1
38
38
fi
39
39
40
- vendor/drush/drush/drush.launcher --config=${DIR} /drush/drushrc.php --alias-path=${DIR} /drush/site-aliases " $@ "
40
+ vendor/drush/drush/drush.launcher --config=" ${DIR} /drush/drushrc.php" --alias-path=" ${DIR} /drush/site-aliases" " $@ "
You can’t perform that action at this time.
0 commit comments