add feedback when downloading a URI source
otherwise the user sees the curl progress bar w/o explanation
This commit is contained in:
parent
0d421c432f
commit
f223821038
|
@ -12,6 +12,7 @@ class Cask::Source::URI
|
||||||
def load
|
def load
|
||||||
HOMEBREW_CACHE_CASKS.mkpath
|
HOMEBREW_CACHE_CASKS.mkpath
|
||||||
path = HOMEBREW_CACHE_CASKS.join(File.basename(uri))
|
path = HOMEBREW_CACHE_CASKS.join(File.basename(uri))
|
||||||
|
ohai "Downloading #{uri}"
|
||||||
curl(uri, '-o', path.to_s)
|
curl(uri, '-o', path.to_s)
|
||||||
Cask::Source::Path.new(path).load
|
Cask::Source::Path.new(path).load
|
||||||
rescue ErrorDuringExecution
|
rescue ErrorDuringExecution
|
||||||
|
|
Loading…
Reference in New Issue