🐛 fix: Pridanie ~/.local/bin do PATH po inštalácii Claude Code

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
martin
2026-03-16 17:05:45 +01:00
parent 21bef4bf4f
commit d8483cad30

View File

@@ -55,6 +55,8 @@ create_user() {
# Inštalácia Claude Code
msg_info "Inštalujem Claude Code pre ${username}"
if su - "$username" -c "curl -fsSL https://claude.ai/install.sh | bash"; then
# Pridanie ~/.local/bin do PATH
su - "$username" -c "grep -q '.local/bin' ~/.bashrc || echo 'export PATH=\"\$HOME/.local/bin:\$PATH\"' >> ~/.bashrc"
msg_ok "Claude Code nainštalovaný pre ${username}"
else
msg_warn "Claude Code inštalácia zlyhala pre ${username} (nefatálna chyba)"