Browse files

parenthesize commands to allow use of "&" for background ops

  • Loading branch information...
1 parent 78d140a commit 32e743720127f01d28c4ca172cd0f426c8f0727d @elia committed Mar 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/terminitor/dsl.rb
View
2 lib/terminitor/dsl.rb
@@ -50,7 +50,7 @@ def run(*commands)
else
current = @_context
end
- current << commands.join(" && ")
+ current << commands.map { |c| "(#{c})" }.join(" && ")
end
# runs commands before each tab in window context

0 comments on commit 32e7437

Please sign in to comment.