Skip to content

Commit

Permalink
Merge pull request #56 from palantirnet/db-load-typo
Browse files Browse the repository at this point in the history
Test whether the db.load.file has been set before trying to find one …
  • Loading branch information
becw authored Jan 27, 2017
2 parents 7e102fe + 1a19d66 commit a92e6ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tasks/lib/db.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
<property name="db.load.export_pattern" value="artifacts/*" />
<property name="db.load.mysql_command" value="drush sqlc" />

<exec dir="${build.dir}" command="ls ${db.load.export_pattern}.sql.gz | tail -1" outputProperty="db.load.file" />
<if>
<not>
<isset property="db.load.file" />
</not>
<then>
<exec dir="${build.dir}" command="ls ${db.load.export_pattern}.sql.gz | tail -1" outputProperty="db.load.file" />
</then>
</if>

<if>
<equals arg1="${db.load.file}" arg2="" />
Expand Down

0 comments on commit a92e6ce

Please sign in to comment.