fix a bug in the extension downloader.
This commit is contained in:
parent
f4169e45fa
commit
090e9d0706
@ -31,7 +31,7 @@ def install_from_github(user, project, ext_name, branch = "master", working_dire
|
|||||||
if !File.exists?("#{extdir}/#{ext_name}")
|
if !File.exists?("#{extdir}/#{ext_name}")
|
||||||
begin
|
begin
|
||||||
puts "Downloading the #{ext_name} plugin into #{extdir}."
|
puts "Downloading the #{ext_name} plugin into #{extdir}."
|
||||||
FileUtils.mkdir_p("#{extdir}/#{ext_name}")
|
FileUtils.mkdir_p("#{extdir}")
|
||||||
zipfile = File.join(extdir, "#{ext_name}.zip")
|
zipfile = File.join(extdir, "#{ext_name}.zip")
|
||||||
open(zipfile, "wb") do |tgz|
|
open(zipfile, "wb") do |tgz|
|
||||||
tgz << fetch(download_link).body
|
tgz << fetch(download_link).body
|
||||||
|
Loading…
Reference in New Issue
Block a user