lib/xcode/install/install.rb in xcode-install-2.4.4 vs lib/xcode/install/install.rb in xcode-install-2.5.0
- old
+ new
@@ -21,9 +21,10 @@
end
def initialize(argv)
@installer = Installer.new
@version = argv.shift_argument
+ @version ||= File.read('.xcode-version') if File.exist?('.xcode-version')
@url = argv.option('url')
@force = argv.flag?('force', false)
@should_clean = argv.flag?('clean', true)
@should_install = argv.flag?('install', true)
@should_switch = argv.flag?('switch', true)