lib/xcode/install.rb in xcode-install-0.0.2 vs lib/xcode/install.rb in xcode-install-0.0.3
- old
+ new
@@ -90,10 +90,11 @@
def install_dmg(dmgPath, suffix = '')
xcode_path = "/Applications/Xcode#{suffix}.app"
`hdiutil mount -nobrowse -noverify #{dmgPath}`
puts 'Please authenticate for Xcode installation...'
- `sudo ditto "/Volumes/Xcode/Xcode.app" "#{xcode_path}"`
+ source = Dir.glob('/Volumes/Xcode/Xcode*.app').first
+ `sudo ditto "#{source}" "#{xcode_path}"`
`umount "/Volumes/Xcode"`
`sudo xcode-select -s #{xcode_path}`
puts `xcodebuild -version`
end
\ No newline at end of file