Skip to content

Commit 6c20de1

Browse files
committed
Fix emtpy array false presumption
1 parent 5a2d9df commit 6c20de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mina/commands.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def empty(stage = :default)
3535
end
3636

3737
def process(path = nil)
38-
if path && queue[stage]
38+
if path && !queue[stage].empty?
3939
queue[stage].unshift(%{echo "$ cd #{path}"}) if fetch(:verbose)
4040
%{(cd #{path} && #{queue[stage].join(' && ')} && cd -)}
4141
else

0 commit comments

Comments
 (0)