Преглед на файлове

composer update: fixed unless cmd by using -gt instead of >

(Command was not working on Ubuntu 16.04.)
Both Ubuntu's and RedHat's man pages of test list -gt, but not >
as their 'greater than' operator.
tags/v0.34.0
Alexander Weidinger преди 6 години
родител
ревизия
fcb3d85f34
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +1
    -1
      php/composer.sls
  2. +1
    -1
      php/ng/composer.sls

+ 1
- 1
php/composer.sls Целия файл

@@ -41,7 +41,7 @@ install-composer:
update-composer:
cmd.run:
- name: "{{ install_file }} selfupdate"
- unless: test $(date -d "60 days $({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") \> $(date "+%s")
- unless: test $(date -d "60 days $({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
- cwd: {{ php.local_bin }}
- env:
- HOME: {{ salt_user_home }}

+ 1
- 1
php/ng/composer.sls Целия файл

@@ -49,7 +49,7 @@ install-composer:
update-composer:
cmd.run:
- name: "{{ install_file }} selfupdate"
- unless: test $(date -d "60 days $({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") \> $(date "+%s")
- unless: test $(date -d "60 days $({{ install_file }} --version | cut -d ' ' -f 4,5)" "+%s") -gt $(date "+%s")
- cwd: {{ php.lookup.pkgs.local_bin }}
- env:
- HOME: {{ salt_user_home }}

Loading…
Отказ
Запис