Skip to content

Commit c8fba33

Browse files
committed
Modify find command to support spaces when finding sites list.
1 parent d3f255c commit c8fba33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phing/tasks/properties.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<available file="${docroot}/sites"/>
6868
<then>
6969
<!-- Find directories in ${docroot}/sites/*/ and format into a comma-separated list. Exclude ${docroot}/sites/g. -->
70-
<exec command="find ${docroot}/sites/* -maxdepth 0 -type d | grep -v -e '${docroot}/sites/g$' | sed -e 's%${docroot}/sites/%%g' -e '2,$s%^%,%' | tr -d '\n'"
70+
<exec command="find '${docroot}/sites' -depth 1 -type d | grep -v -e '${docroot}/sites/g$' | sed -e 's%${docroot}/sites/%%g' -e '2,$s%^%,%' | tr -d '\n'"
7171
outputProperty="multisite.name" logoutput="false" checkreturn="true"/>
7272
</then>
7373
<else>

0 commit comments

Comments
 (0)