fastlane/lib/fastlane/fast_file.rb in fastlane-2.221.1 vs fastlane/lib/fastlane/fast_file.rb in fastlane-2.222.0
- old
+ new
@@ -216,10 +216,12 @@
FastFile.sh(*args, &b)
end
end
def self.sh(*command, step_name: nil, log: true, error_callback: nil, &b)
- command_header = log ? step_name || Actions.shell_command_from_args(*command) : "shell command"
+ command_header = step_name
+ command_header ||= log ? Actions.shell_command_from_args(*command) : "shell command"
+
Actions.execute_action(command_header) do
Actions.sh_no_action(*command, log: log, error_callback: error_callback, &b)
end
end