Permalink
Browse files

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

…atements

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent cebf623 commit c005ed17a399a0a37c40c5146c4876abcd51b249 @jamis jamis committed Aug 6, 2005
Showing with 3 additions and 3 deletions.
  1. +1 −1 switchtower/lib/switchtower/scm/darcs.rb
  2. +2 −2 switchtower/lib/switchtower/scm/subversion.rb
@@ -40,7 +40,7 @@ def checkout(actor)
command = <<-CMD
if [[ ! -d #{actor.release_path} ]]; then
- #{darcs} get #{configuration.repository} #{actor.release_path}
+ #{darcs} get #{configuration.repository} #{actor.release_path};
fi
CMD
actor.run(command)
@@ -47,9 +47,9 @@ def checkout(actor)
command = <<-CMD
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
- #{svn} co -q -r#{latest_revision} #{configuration.repository} #{actor.release_path}
+ #{svn} co -q -r#{latest_revision} #{configuration.repository} #{actor.release_path};
fi
CMD
actor.run(command) do |ch, stream, out|

0 comments on commit c005ed1

Please sign in to comment.