Skip to content

Commit c350f3d

Browse files
swichersmalikkotob
authored andcommitted
Fixes acquia#1328: Add support for directories with spaces.
1 parent c8fba33 commit c350f3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phing/phingcludes/DrushTask.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function init() {
246246
public function main() {
247247
$command = array();
248248

249-
$command[] = !empty($this->bin) ? $this->bin : 'drush';
249+
$command[] = !empty($this->bin) ? escapeshellarg($this->bin) : 'drush';
250250

251251
if (!empty($this->alias)) {
252252
$command[] = '@' . $this->alias;

phing/tasks/properties.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<exec dir="${repo.root}" command="echo '0' >> ${blt.config-files.schema-version}" checkreturn="true" logoutput="true" passthru="false" level="${blt.exec_level}"/>
4040
</then>
4141
</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}"/>
4343
<!-- Send errors to /dev/null, for environments like ACE without composer. -->
4444
<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}" />
4545

0 commit comments

Comments
 (0)