expand tmp for osx

This commit is contained in:
Sam 2017-04-12 14:47:37 -04:00
parent db9a44d4b5
commit a018eed611

View File

@ -7,7 +7,7 @@ class GitImporter
if @url.start_with?("https://github.com") && !@url.end_with?(".git") if @url.start_with?("https://github.com") && !@url.end_with?(".git")
@url += ".git" @url += ".git"
end end
@temp_folder = "#{Dir.tmpdir}/discourse_theme_#{SecureRandom.hex}" @temp_folder = "#{Pathname.new(Dir.tmpdir).realpath}/discourse_theme_#{SecureRandom.hex}"
end end
def import! def import!