1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Explicitly terminate shell statements with ';' if they are in 'if' statements

git-svn-id: http://svn.rubyonrails.org/rails/trunk/switchtower@1977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2005-08-06 20:13:03 +00:00
parent ec009d3345
commit 90f7a4f1b5
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ module SwitchTower
command = <<-CMD command = <<-CMD
if [[ ! -d #{actor.release_path} ]]; then if [[ ! -d #{actor.release_path} ]]; then
#{darcs} get #{configuration.repository} #{actor.release_path} #{darcs} get #{configuration.repository} #{actor.release_path};
fi fi
CMD CMD
actor.run(command) actor.run(command)

View file

@ -47,9 +47,9 @@ module SwitchTower
command = <<-CMD command = <<-CMD
if [[ -d #{actor.release_path} ]]; then if [[ -d #{actor.release_path} ]]; then
#{svn} up -q -r#{latest_revision} #{actor.release_path} #{svn} up -q -r#{latest_revision} #{actor.release_path};
else else
#{svn} co -q -r#{latest_revision} #{configuration.repository} #{actor.release_path} #{svn} co -q -r#{latest_revision} #{configuration.repository} #{actor.release_path};
fi fi
CMD CMD
actor.run(command) do |ch, stream, out| actor.run(command) do |ch, stream, out|