Skip to content

Commit

Permalink
Create symlink to latest installed version.
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
neonichu committed Apr 14, 2015
1 parent 7b89caa commit 08ef63c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/xcode/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def install_dmg(dmgPath, suffix = '', switch = true)
`sudo xcodebuild -license` unless xcode_license_approved?

if switch
`sudo rm -f #{SYMLINK_PATH}` unless current_symlink.nil?
`sudo ln -sf #{xcode_path} #{SYMLINK_PATH}` unless SYMLINK_PATH.exist?

`sudo xcode-select --switch #{xcode_path}`
puts `xcodebuild -version`
end
Expand Down

0 comments on commit 08ef63c

Please sign in to comment.