Skip to content

Commit

Permalink
Address style comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerluan authored and revolter committed Nov 2, 2022
1 parent 30cd166 commit 136b664
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions fastlane/lib/fastlane/actions/xcodes.rb
Expand Up @@ -23,24 +23,21 @@ def self.run(params)

if (xcodes_args = params[:xcodes_args])
command << xcodes_args
shell_command = command.join(' ')
Actions.sh(shell_command)
Actions.sh(command.join(" "))
elsif !params[:select_for_current_build_only]
command << "install"
command << "'#{version}'"
command << "--update" if params[:update_list]
command << "--select"
shell_command = command.join(' ')
Actions.sh(shell_command)
Actions.sh(command.join(" "))
end

command = []
command << binary
command << "installed"
command << "'#{version}'"
shell_command = command.join(' ')
# Prints something like /Applications/Xcode-14.app
xcode_path = Actions.sh(shell_command).strip
xcode_path = Actions.sh(command.join(" ")).strip
xcode_developer_path = xcode_path + "/Contents/Developer/"

UI.message("Setting Xcode version '#{version}' at '#{xcode_path}' for all build steps")
Expand Down

0 comments on commit 136b664

Please sign in to comment.