Merge pull request #6273 from joehorsnell/gracefully_handle_missing_user_env_var
Gracefully handle missing USER env var
This commit is contained in:
commit
895467ad9f
@ -4,6 +4,9 @@ then
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
fi
|
||||
|
||||
# USER isn't always set so provide a fall back for `brew` and subprocesses.
|
||||
export USER=${USER:-`id -un`}
|
||||
|
||||
# Where we store built products; a Cellar in HOMEBREW_PREFIX (often /usr/local
|
||||
# for bottles) unless there's already a Cellar in HOMEBREW_REPOSITORY.
|
||||
if [[ -d "$HOMEBREW_REPOSITORY/Cellar" ]]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user