Update tools/addon/homebrew.sh

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Morgan Prior
2026-02-26 13:59:42 +00:00
committed by GitHub
parent 83df31c5da
commit ce3127f2b3

View File

@@ -87,7 +87,7 @@ fi
EOF
chmod +x /etc/profile.d/homebrew.sh
BREW_USER_HOME=$(eval echo "~$BREW_USER")
BREW_USER_HOME=$(getent passwd "$BREW_USER" | cut -d: -f6)
if ! grep -q 'linuxbrew' "$BREW_USER_HOME/.bashrc" 2>/dev/null; then
cat >> "$BREW_USER_HOME/.bashrc" << 'EOF'