1
0
Fork 0

Gentoo user-packages: add omp install via bun (was missing)

The universal arch/debian scripts had omp install via 'bun add -g
@oh-my-pi/pi-coding-agent' for both OSes. The gentoo script was
missing this block entirely — only the universal's os_family guard
handled arch/debian. On tadbit this meant omp never got installed.

Fix: added an omp install block to the gentoo script after the bun
verification step. Same wrapping in a subshell for undervoltage
safety. Now all three OSes install omp the same way (via bun global).
This commit is contained in:
Rain 2026-06-23 17:58:25 -04:00
parent 620eb0c633
commit 252f166f15

View file

@ -209,6 +209,26 @@ fi
BUN_VER=$(bun --version 2>/dev/null)
log "bun: $BUN_VER (from official bun.sh installer; gentoo has no package)"
# Step 6.5: Pi coding agent (oh-my-pi) — installs omp via bun global.
# Gentoo: bun is in ~/.local/bin (from the curl install above), not
# /usr/bin, so the package-based install paths in the universal
# script don't apply. We do this here.
if command -v bun >/dev/null 2>&1; then
if ! command -v omp >/dev/null 2>&1; then
log "installing @oh-my-pi/pi-coding-agent via bun global"
# Wrap in subshell so a segfault/timeout (e.g. Pi undervoltage
# killing the install mid-run, see pitfall #30) doesn't abort
# the whole bootstrap. omp can be retried manually later.
if (bun add -g @oh-my-pi/pi-coding-agent 2>&1 | tail -10); then
log "omp installed: $(omp --version 2>&1 | head -1)"
else
log "WARNING: bun add -g failed; omp not installed. Retry manually."
fi
else
log "omp already installed: $(omp --version 2>&1 | head -1)"
fi
fi
# Step 7: oh-my-zsh + plugins
if [[ ! -d "$USER_HOME/.oh-my-zsh" ]]; then
log "installing oh-my-zsh"