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

Fix keep_releases bug #103

Merged
merged 1 commit into from
Jul 14, 2013
Merged
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
fix keep_releases bug
  • Loading branch information
rex79 committed Feb 26, 2013
commit 7c202fa4a1eea0511a61b9dfd5827a7e8b7b728f
2 changes: 1 addition & 1 deletion lib/mina/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
echo "-----> Cleaning up old releases (keeping #{keep_releases!})"
#{echo_cmd %{cd "#{deploy_to!}/#{releases_path!}" || exit 15}}
#{echo_cmd %{count=`ls -1d [0-9]* | sort -rn | wc -l`}}
#{echo_cmd %{remove=$((count > 5 ? count - #{keep_releases} : 0))}}
#{echo_cmd %{remove=$(($count > #{keep_releases} ? count - #{keep_releases} : 0))}}
#{echo_cmd %{ls -1d [0-9]* | sort -rn | tail -n $remove | xargs rm -rf {}}}
}
end
Expand Down