lib/xcode/install/install.rb in xcode-install-2.6.8 vs lib/xcode/install/install.rb in xcode-install-2.7.0
- old
+ new
@@ -22,10 +22,10 @@
end
def initialize(argv)
@installer = Installer.new
@version = argv.shift_argument
- @version ||= File.read('.xcode-version') if File.exist?('.xcode-version')
+ @version ||= File.read('.xcode-version').strip 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)