Clarify error message: Homebrew cannot run as root
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,7 @@ msg_ok "Installed Dependencies"
|
|||||||
msg_info "Detecting Non-Root User"
|
msg_info "Detecting Non-Root User"
|
||||||
BREW_USER=$(awk -F: '$3 >= 1000 && $3 < 65534 { print $1; exit }' /etc/passwd)
|
BREW_USER=$(awk -F: '$3 >= 1000 && $3 < 65534 { print $1; exit }' /etc/passwd)
|
||||||
if [ -z "$BREW_USER" ]; then
|
if [ -z "$BREW_USER" ]; then
|
||||||
msg_error "No non-root user found (uid >= 1000). Create a user first."
|
msg_error "No non-root user found (uid >= 1000). Homebrew cannot run as root. Create a user first."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
msg_ok "Detected User: $BREW_USER"
|
msg_ok "Detected User: $BREW_USER"
|
||||||
|
|||||||
Reference in New Issue
Block a user