Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an issue with the output of ls in releases_list that was breaking cleanup. #1036

Merged
merged 3 commits into from
Feb 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions recipe/deploy/release.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
}

// 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.
Expand Down