mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 17:22:41 +01:00
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:
commit
30013f9849
@ -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)
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user