From c3d9e8e6f11d2a18643261ced88f02cc7ed1e7d5 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Tue, 6 Aug 2024 21:42:50 +0100 Subject: [PATCH] cmd/update: make chown suggestion consistent --- Library/Homebrew/cmd/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 5dcf7aeadd..fe3b64b6cb 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -386,7 +386,7 @@ EOS ${HOMEBREW_CELLAR} is not writable. You should change the ownership and permissions of ${HOMEBREW_CELLAR} back to your user account: - sudo chown -R \$(whoami) ${HOMEBREW_CELLAR} + sudo chown -R ${USER-\$(whoami)} ${HOMEBREW_CELLAR} EOS fi