Browse Source

fix(composer): stop hanging by preventing interaction

pull/233/head
sticky-note 2 years ago
parent
commit
aca894188e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      php/composer.sls

+ 2
- 2
php/composer.sls View File

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:

Loading…
Cancel
Save