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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user