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>
This commit is contained in:
2026-03-18 18:53:19 +00:00
parent de5e296806
commit 296ad6c4eb
4 changed files with 9 additions and 42 deletions

View File

@@ -22,7 +22,7 @@ if ! command -v chafa &> /dev/null; then
;;
esac
fi
command -v chafa &> /dev/null && chafa --version | head -1 | log_quote
command -v chafa &> /dev/null && chafa --version | sed -n '1p' | log_quote
# pdftotext — PDF text extraction (part of poppler)
if ! command -v pdftotext &> /dev/null; then
@@ -41,6 +41,6 @@ if ! command -v pdftotext &> /dev/null; then
;;
esac
fi
command -v pdftotext &> /dev/null && pdftotext -v 2>&1 | head -1 | log_quote
command -v pdftotext &> /dev/null && pdftotext -v 2>&1 | sed -n '1p' | log_quote
log_pass "preview dependencies"