Oops, fix testing for node_modules
I somehow had it in my head that `realpath` would crash if the file didn't exist, but that's super not true! It returns the tentative path for if you _were_ gonna create this!
This commit is contained in:
parent
171558a64f
commit
32ae1accce
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@
|
|||
command: |
|
||||
bash -c "
|
||||
cmp '{{ remote_app_root }}/yarn.lock' '/srv/impress-2020/current/yarn.lock' &&
|
||||
realpath /srv/impress-2020/current/node_modules"
|
||||
test -e /srv/impress-2020/current/node_modules"
|
||||
failed_when: no
|
||||
register: can_reuse_node_modules_when_successful
|
||||
|
||||
|
|
Loading…
Reference in a new issue