Skip to content

Commit

Permalink
Merge pull request #3076 from rolandwalker/user_from_etc
Browse files Browse the repository at this point in the history
more reliable way to look up username
  • Loading branch information
rolandwalker committed Feb 22, 2014
2 parents fc6f25b + 3ded589 commit c4479a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def self.init
unless caskroom.exist?
ohai "We need to make Caskroom for the first time at #{caskroom}"
ohai "We'll set permissions properly so we won't need sudo in the future"
current_user = ENV['USER']
current_user = Etc.getpwuid(Process.euid).name
if caskroom.parent.writable?
system '/bin/mkdir', caskroom
else
Expand Down

0 comments on commit c4479a7

Please sign in to comment.