lib/xcode/install/install.rb in xcode-install-1.3.0 vs lib/xcode/install/install.rb in xcode-install-1.4.0
- old
+ new
@@ -34,10 +34,10 @@
def validate!
super
help! 'A VERSION argument is required.' unless @version
fail Informative, "Version #{@version} already installed." if @installer.installed?(@version) && !@force
- fail Informative, "Version #{@version} doesn't exist." unless @installer.exist?(@version)
+ fail Informative, "Version #{@version} doesn't exist." unless @url || @installer.exist?(@version)
fail Informative, "Invalid URL: `#{@url}`" unless !@url || @url =~ /\A#{URI.regexp}\z/
end
def run
@installer.install_version(@version, @should_switch, @should_clean, @should_install,