lib/xcode/install/install.rb in xcode-install-0.3.3 vs lib/xcode/install/install.rb in xcode-install-0.9.0
- old
+ new
@@ -22,9 +22,11 @@
@should_switch = argv.flag?('switch', true)
super
end
def validate!
+ super
+
return if @version.nil?
fail Informative, "Version #{@version} already installed." if @installer.installed?(@version)
fail Informative, "Version #{@version} doesn't exist." unless @installer.exist?(@version)
end