fix a bug which `motion update --cache-version=X' is broken

http://hipbyte.myjetbrains.com/youtrack/issue/RM-408
This commit is contained in:
Watson
2014-01-29 11:42:00 +09:00
parent c296e46c2e
commit 568e1c0b35

View File

@@ -106,7 +106,7 @@ module Motion; class Command
need_root
$stderr.puts "Connecting to the server..."
resp = curl("-s -d \"product=rubymotion\" -d \"current_software_version=#{product_version}\" -d \"@wanted_software_version=#{@wanted_software_version}\" -d \"license_key=#{read_license_key}\" https://secure.rubymotion.com/update_software")
resp = curl("-s -d \"product=rubymotion\" -d \"current_software_version=#{product_version}\" -d \"wanted_software_version=#{@wanted_software_version}\" -d \"license_key=#{read_license_key}\" https://secure.rubymotion.com/update_software")
unless resp.match(/^http:/)
die resp
end