lib/sigh/download_all.rb in sigh-1.1.1 vs lib/sigh/download_all.rb in sigh-1.1.2
- old
+ new
@@ -16,14 +16,13 @@
end
end
end
def download_profile(profile)
- output = Sigh.config[:output_path] || "/tmp"
-
+ FileUtils.mkdir_p(Sigh.config[:output_path])
profile_name = "#{profile.class.pretty_type}_#{profile.app.bundle_id}.mobileprovision" # default name
- output_path = File.join(output, profile_name)
+ output_path = File.join(Sigh.config[:output_path], profile_name)
File.open(output_path, "wb") do |f|
f.write(profile.download)
end
Manager.install_profile(output_path) unless Sigh.config[:skip_install]