Skip to content
Snippets Groups Projects
Commit aca89418 authored by sticky-note's avatar sticky-note
Browse files

fix(composer): stop hanging by preventing interaction

parent e5272179
No related branches found
No related tags found
No related merge requests found
...@@ -45,9 +45,9 @@ update-composer: ...@@ -45,9 +45,9 @@ update-composer:
cmd.run: cmd.run:
- name: "{{ install_file }} selfupdate" - name: "{{ install_file }} selfupdate"
{% if grains['os_family'] == 'FreeBSD' %} {% if grains['os_family'] == 'FreeBSD' %}
- unless: test $(date -v+60d -j -f "%Y-%m-%d %H:%M:%S" "$({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s") - unless: test $(date -v+60d -j -f "%Y-%m-%d %H:%M:%S" "$({{ install_file }} --version --no-interaction | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
{% else %} {% else %}
- unless: test $(date -d "60 days $({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s") - unless: test $(date -d "60 days $({{ install_file }} --version --no-interaction | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
{% endif %} {% endif %}
- cwd: {{ php.lookup.pkgs.local_bin }} - cwd: {{ php.lookup.pkgs.local_bin }}
- env: - env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment