Skip to content

Commit

Permalink
fix: interrupt download causes partial cache file to be used for next…
Browse files Browse the repository at this point in the history
… install
  • Loading branch information
lukesampson committed Jul 20, 2013
1 parent 1183734 commit 5be0286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ function dl_with_cache($app, $version, $url, $to) {
if(!(test-path $cached)) {
$null = ensure $cachedir
write-host "downloading $url..." -nonewline
dl_progress $url $cached
dl_progress $url "$cached.download"
mv "$cached.download" $cached
write-host "done"
} else { write-host "loading $url from cache..."}
cp $cached $to
Expand Down

0 comments on commit 5be0286

Please sign in to comment.