Files
dotfiles/install.d/81-cmatrix.sh
Andrejus 296ad6c4eb fix: SIGPIPE (exit 141) in mise verification, remove redundant bat script
Replace head -1 with sed -n '1p' across all install scripts to
prevent SIGPIPE when commands produce multi-line output. head closes
the pipe after reading line 1, causing the writer to receive SIGPIPE
which propagates via pipefail (exit 141). sed reads all input,
avoiding the broken pipe.

Remove install.d/26-bat.sh — bat is already installed and managed
via mise in 30-mise.sh.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-18 18:53:19 +00:00

29 lines
771 B
Bash
Executable File

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Install cmatrix.
#
# skip if in Codespaces
[[ "$DOTS_ENV" == "codespaces" ]] && { log_skip "Codespaces"; return 0; }
if ! command -v cmatrix &> /dev/null; then
case "$DOTS_PKG" in
apt)
sudo apt-get install -qq cmatrix &>/dev/null
;;
pacman)
sudo pacman -S --noconfirm cmatrix &>/dev/null
;;
brew)
brew install cmatrix
;;
*)
log_warn "Skipping cmatrix install: no supported package manager found"
;;
esac
fi
command -v cmatrix &> /dev/null && cmatrix -V 2>&1 | sed -n '1p' | log_quote
log_pass "cmatrix installed"