fastlane/lib/fastlane/fast_file.rb in fastlane-2.68.0.beta.20171130010004 vs fastlane/lib/fastlane/fast_file.rb in fastlane-2.68.0
- old
+ new
@@ -173,9 +173,10 @@
Actions.load_external_actions(path)
end
# Execute shell command
def sh(command, log: true, error_callback: nil)
+ command = Shellwords.join(command) if command.kind_of?(Array)
command_header = log ? command : "shell command"
Actions.execute_action(command_header) do
Actions.sh_no_action(command, log: log, error_callback: error_callback)
end
end