lib/cumuli/cli/remote_command.rb in cumuli-0.3.4 vs lib/cumuli/cli/remote_command.rb in cumuli-0.4.0
- old
+ new
@@ -23,10 +23,10 @@
extract_env(COMMAND_ENV) || get_passed_command
end
def get_passed_command
matched = argv.first.match(/\[(.*)\]/)
- matched && matched[1]
+ (matched && matched[1]) || argv.first
end
def command
Commander.new(raw_command).build
end