lib/yads.rb in yads-0.0.3.pre vs lib/yads.rb in yads-0.0.3.pre2
- old
+ new
@@ -35,10 +35,10 @@
def check_path(ssh, path, clone)
@logger.puts "> cd #{path}/.git"
ssh.exec("cd #{path}/.git") do |ch, stream, data|
if stream == :stderr
@logger.puts "> cd #{path}"
- ssh.exec("cd #{path}") do |ch1, stream1, data1|
+ ssh.exec("mkdir -p #{path}; cd #{path}") do |ch1, stream1, data1|
@logger.puts "> #{clone}"
ssh.exec(clone) do |ch1, stream1, data1|
abort data1 if stream1 == :stderr
@logger.puts "> cd #{path}"