lib/frontkick/command.rb in frontkick-0.4.3 vs lib/frontkick/command.rb in frontkick-0.4.4
- old
+ new
@@ -9,10 +9,10 @@
stdout, stderr, exit_code, duration = nil
stdin, out, err, wait_thr, pid = nil
cmd_array = cmd.kind_of?(Array) ? cmd : [cmd]
- command = "#{cmd_array.first} #{Shellwords.shelljoin(cmd_array[1..-2])}"
+ command = "#{cmd_array.first} #{Shellwords.shelljoin(cmd_array[1..-1])}"
if opts[:dry_run]
return Result.new(:stdout => command, :stderr => '', :exit_code => 0, :duration => 0)
end