mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Use whoami
consistently in chown
commands
This commit is contained in:
parent
2711d5f489
commit
a89a3dfe91
@ -67,7 +67,7 @@ module Cask
|
||||
|
||||
if path.exist? && !path.writable?
|
||||
add_error "The staging path #{user_tilde(path.to_s)} is not writable by the current user."
|
||||
add_error "To fix, run \'sudo chown -R ${USER}:staff #{user_tilde(path.to_s)}'"
|
||||
add_error "To fix, run \'sudo chown -R $(whoami):staff #{user_tilde(path.to_s)}'"
|
||||
end
|
||||
|
||||
puts user_tilde(path.to_s)
|
||||
|
@ -116,7 +116,7 @@ If you ever did a `sudo gem`, etc. before then a lot of files will have
|
||||
been created owned by root. Fix with:
|
||||
|
||||
```sh
|
||||
sudo chown -R $USER /Library/Ruby /Library/Perl /Library/Python
|
||||
sudo chown -R $(whoami) /Library/Ruby /Library/Perl /Library/Python
|
||||
```
|
||||
|
||||
## Perl CPAN modules without sudo
|
||||
|
Loading…
x
Reference in New Issue
Block a user