Skip to content

Commit 2b6dea9

Browse files
committed
Fixes acquia#1328: Spaces in project paths break BLT.
1 parent 6a0f383 commit 2b6dea9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Robo/Commands/Blt/DoctorCommand.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,11 @@ protected function executeCommandInDrupalVm($command) {
7777
* The command result.
7878
*/
7979
protected function executeDoctorOnHost($alias) {
80-
$include_dir = $this->getConfigValue('blt.root') . '/drush';
8180
$result = $this->taskDrush()
8281
->drush("blt-doctor")
8382
->alias($alias)
8483
->uri("")
85-
->includePath($include_dir)
84+
->includePath($this->getConfigValue('blt.root') . '/drush')
8685
->run();
8786

8887
return $result;

template/drush.wrapper

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
# `../vendor/bin/drush.launcher --local $@` is a common variant for
2929
# composer-managed Drupal sites.
3030
#
31-
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
31+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3232
cd "`dirname $0`"
3333

34-
if [ ! -f ${DIR}/vendor/drush/drush/drush.launcher ]; then
34+
if [ ! -f "${DIR}/vendor/drush/drush/drush.launcher" ]; then
3535
echo >&2 "Drush was not found in this project's vendor directory. You can install it by typing:"
3636
echo >&2 "composer install"
3737
exit 1
3838
fi
3939

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" "$@"

0 commit comments

Comments
 (0)