Skip to content

Commit a1c6386

Browse files
committed
log all parameters in arduino_cmd run
1 parent 71c1d3f commit a1c6386

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/arduino_ci/arduino_cmd.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ def initialize(installation)
2727
end
2828

2929
def run(*args)
30-
full_args = [@display_mgr.environment, @installation.cmd_path] + args
31-
puts "Running $ #{full_args.join(' ')}"
32-
system(*full_args)
30+
full_args = [@installation.cmd_path] + args
31+
full_cmd = [@display_mgr.environment] + full_args
32+
puts "Running #{@display_mgr.environment} $ #{full_args.join(' ')}"
33+
system(*full_cmd)
3334
end
3435

3536
def board_installed?(board)

0 commit comments

Comments
 (0)