Skip to content

Commit

Permalink
Merge 2115b7a into 726b461
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Dec 6, 2019
2 parents 726b461 + 2115b7a commit 632d9c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/actions.rb
@@ -1,4 +1,3 @@
require "open3"
require_relative "actions/create_file"
require_relative "actions/create_link"
require_relative "actions/directory"
Expand Down Expand Up @@ -260,6 +259,7 @@ def run(command, config = {})
env_splat = [config[:env]] if config[:env]

if config[:capture]
require "open3"
result, status = Open3.capture2e(*env_splat, command.to_s)
success = status.success?
else
Expand Down

0 comments on commit 632d9c9

Please sign in to comment.