Skip to content

Commit aca8941

Browse files
author
sticky-note
committed
fix(composer): stop hanging by preventing interaction
1 parent e527217 commit aca8941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/composer.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ update-composer:
4545
cmd.run:
4646
- name: "{{ install_file }} selfupdate"
4747
{% if grains['os_family'] == 'FreeBSD' %}
48-
- 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")
48+
- 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")
4949
{% else %}
50-
- unless: test $(date -d "60 days $({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
50+
- unless: test $(date -d "60 days $({{ install_file }} --version --no-interaction | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
5151
{% endif %}
5252
- cwd: {{ php.lookup.pkgs.local_bin }}
5353
- env:

0 commit comments

Comments
 (0)