Skip to content

Commit ff92fd3

Browse files
authored
Merge pull request #14 from ansistrano/fix_bsd
fix ls arguments for bsd distros
2 parents bc352b3 + 4296a33 commit ff92fd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/setup.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
register: ansistrano_releases_path
55

66
- name: ANSISTRANO | Get number of releases
7-
shell: echo `ls {{ ansistrano_releases_path.stdout }} -1t | wc -l`
7+
shell: echo `ls -1t {{ ansistrano_releases_path.stdout }} | wc -l`
88
register: ansistrano_versions_count
99

1010
- name: ANSISTRANO | Check if there is more than one release
@@ -13,11 +13,11 @@
1313
when: ansistrano_versions_count.stdout|int <= 1
1414

1515
- name: ANSISTRANO | Get current release version
16-
shell: echo `ls {{ ansistrano_releases_path.stdout }} -1t | head -n 1`
16+
shell: echo `ls -1t {{ ansistrano_releases_path.stdout }} | head -n 1`
1717
register: ansistrano_current_release_version
1818

1919
- name: ANSISTRANO | Get previous releases version
20-
shell: echo `ls {{ ansistrano_releases_path.stdout }} -1t | head -n 2 | tail -n 1`
20+
shell: echo `ls -1t {{ ansistrano_releases_path.stdout }} | head -n 2 | tail -n 1`
2121
register: ansistrano_previous_release_version
2222

2323
- name: ANSISTRANO | Get release path

0 commit comments

Comments
 (0)