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:
Emi Matchu 2021-11-03 17:25:51 -07:00
parent 171558a64f
commit 32ae1accce

View file

@ -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