diff options
author | Jamis Buck <jamis@37signals.com> | 2005-08-06 20:13:03 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-08-06 20:13:03 +0000 |
commit | c005ed17a399a0a37c40c5146c4876abcd51b249 (patch) | |
tree | c837c7f749ce4fadeb53e984644420affdae4d71 | |
parent | cebf623ebf1d849cc57e6170969212dc484e508f (diff) | |
download | rails-c005ed17a399a0a37c40c5146c4876abcd51b249.tar.gz rails-c005ed17a399a0a37c40c5146c4876abcd51b249.tar.bz2 rails-c005ed17a399a0a37c40c5146c4876abcd51b249.zip |
Explicitly terminate shell statements with ';' if they are in 'if' statements
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | switchtower/lib/switchtower/scm/darcs.rb | 2 | ||||
-rw-r--r-- | switchtower/lib/switchtower/scm/subversion.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/switchtower/lib/switchtower/scm/darcs.rb b/switchtower/lib/switchtower/scm/darcs.rb index 7879890b49..534a7336ad 100644 --- a/switchtower/lib/switchtower/scm/darcs.rb +++ b/switchtower/lib/switchtower/scm/darcs.rb @@ -40,7 +40,7 @@ module SwitchTower 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) diff --git a/switchtower/lib/switchtower/scm/subversion.rb b/switchtower/lib/switchtower/scm/subversion.rb index 533f482622..79cb6aef8f 100644 --- a/switchtower/lib/switchtower/scm/subversion.rb +++ b/switchtower/lib/switchtower/scm/subversion.rb @@ -47,9 +47,9 @@ module SwitchTower 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| |