Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -227,12 +227,12 @@ def system_timeout(timeout, *args)
end

def raw_sh(*args)
options = args.last.is_a?(Hash) ? args.pop : {}
continue_on_failure = options[:continue_on_failure]
use_exec = options[:use_exec]
timeout = options[:timeout]
options = args.last.is_a?(Hash) ? args.last : {}
continue_on_failure = options.delete :continue_on_failure
use_exec = options.delete :use_exec
timeout = options.delete :timeout

unless options[:no_print_cmd]
unless options.delete :no_print_cmd
STDERR.puts "$ #{printable_cmd(args)}"
end

0 comments on commit a5e393f

Please sign in to comment.