lib/mina/commands.rb in mina-1.2.2 vs lib/mina/commands.rb in mina-1.2.3

- old
+ new

@@ -33,10 +33,10 @@ def empty(stage = :default) queue[stage] = [] end def process(path = nil) - if path + if path && !queue[stage].empty? queue[stage].unshift(%{echo "$ cd #{path}"}) if fetch(:verbose) %{(cd #{path} && #{queue[stage].join(' && ')} && cd -)} else queue[stage].join("\n") end