Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Ensure that user_home is always cached
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Sep 8, 2016
1 parent 3071a0b commit 2ac0c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def user_home
elsif !File.writable?(home)
warning += "\n * `#{home}` is not writable"
else
return Pathname.new(home)
return @user_home = Pathname.new(home)
end

login = Etc.getlogin || "unknown"
Expand Down

0 comments on commit 2ac0c51

Please sign in to comment.