Skip to content

Commit

Permalink
Use test command to check that the wp-load.php file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
betrcode committed Oct 16, 2016
1 parent 6bf857b commit 4873f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/core.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tasks file for wordpress, core
---
- name: core | check download
shell: "ls {{ item.path }} | grep -q 'wp-'"
command: "test -f {{ item.path }}/wp-load.php"
register: check_download
failed_when: false
changed_when: false
Expand Down

0 comments on commit 4873f10

Please sign in to comment.