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
This commit is contained in:
parent
cebf623ebf
commit
c005ed17a3
|
@ -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)
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue