Skip to content

Commit

Permalink
put a try around the symlink in mkcachedir
Browse files Browse the repository at this point in the history
ref issue 12166

(cherry picked from commit 6b979b6)
from PR #14026
  • Loading branch information
tkelman committed Nov 18, 2015
1 parent 7d869f8 commit d332bd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base/pkg/cache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ function mkcachedir()
if !isdir(rootcache)
mkdir(rootcache)
end
symlink(rootcache, cache)
return
try
symlink(rootcache, cache)
return
end
end
mkdir(cache)
end
Expand Down

0 comments on commit d332bd4

Please sign in to comment.