fastlane/lib/fastlane/fast_file.rb in fastlane-2.3.0 vs fastlane/lib/fastlane/fast_file.rb in fastlane-2.3.1

- old
+ new

@@ -25,11 +25,11 @@ end content.scan(/^\s*require (.*)/).each do |current| gem_name = current.last next if gem_name.include?(".") # these are local gems - UI.important("You require a gem, please call `fastlane_require #{gem_name}` before to ensure the gem is installed") + UI.important("You require a gem, if this is a third party gem, please use `fastlane_require #{gem_name}` to ensure the gem is installed locally") end parse(content, @path) end @@ -169,12 +169,13 @@ Actions.load_external_actions(path) end # Execute shell command - def sh(command) - Actions.execute_action(command) do - Actions.sh_no_action(command) + def sh(command, log: true, error_callback: nil) + 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 def desc(string) desc_collection << string