Merge pull request #1036 from crosma/master

Fixed an issue with the output of ls in releases_list that was breaking cleanup.
This commit is contained in:
Anton Medvedev 2017-02-21 23:48:16 +07:00 committed by GitHub
commit 30013f9849
2 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@
- Fixed `Can not share same dirs` for shared folders having similar names [#995](https://github.com/deployphp/deployer/issues/995)
- Fixed scalar override on recursive option merge [#1003](https://github.com/deployphp/deployer/pull/1003)
- Fixed incompatible PHP 7.0 syntax [#1020](https://github.com/deployphp/deployer/pull/1020)
- Fixed an issue with the output of ls in releases_list that was breaking cleanup.
- Fixed possibility to use PEM files with Native SSH
### Changed
- Add task queue:restart for Laravel recipe [#1007](https://github.com/deployphp/deployer/pull/1007)

View File

@ -37,11 +37,11 @@ set('releases_list', function () {
}
// Will list only dirs in releases.
$list = run('cd releases && ls -t -d */')->toArray();
$list = run('cd releases && ls -t -1 -d */')->toArray();
// Prepare list.
$list = array_map(function ($release) {
return basename(rtrim($release, '/'));
return basename(rtrim(trim($release), '/'));
}, $list);
$releases = []; // Releases list.