fastlane/lib/fastlane/actions/appledoc.rb in fastlane-2.74.1 vs fastlane/lib/fastlane/actions/appledoc.rb in fastlane-2.75.0.beta.20180109010003

- old
+ new

@@ -72,11 +72,11 @@ UI.success("Generating documentation.") cli_args = appledoc_args.join(' ') input_cli_arg = Array(params_hash[:input]).map(&:shellescape).join(' ') command = "appledoc #{cli_args}".strip + " " + input_cli_arg UI.verbose(command) - Actions.sh command + Actions.sh(command) end def self.params_hash_to_cli_args(params) # Remove nil and false value params params = params.delete_if { |_, v| v.nil? || v == false } @@ -107,11 +107,11 @@ def self.create_output_dir_if_not_exists(output_path) output_dir = File.dirname(output_path) # If the output directory doesn't exist, create it - unless Dir.exist? output_dir - FileUtils.mkpath output_dir + unless Dir.exist?(output_dir) + FileUtils.mkpath(output_dir) end end def self.description "Generate Apple-like source code documentation from the source code"