From 2e2bba47a2bbd64433b138c170bc191ade24f80b Mon Sep 17 00:00:00 2001 From: Jeremie Fraeys Date: Sat, 21 Feb 2026 20:46:15 -0500 Subject: [PATCH] fix(build): disable pipefail around tar head pipe to prevent SIGPIPE The tar | head -n 1 | cut pipeline causes SIGPIPE (error 141) when head closes the pipe before tar finishes writing --- cli/scripts/build_rsync.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/scripts/build_rsync.sh b/cli/scripts/build_rsync.sh index 0d9723b..6170986 100644 --- a/cli/scripts/build_rsync.sh +++ b/cli/scripts/build_rsync.sh @@ -73,7 +73,9 @@ if [[ "${verified}" -ne 1 ]]; then fi tar -C "${tmp}" -xzf "${tmp}/rsync.tar.gz" +set +o pipefail extract_dir="$(tar -tzf "${tmp}/rsync.tar.gz" | head -n 1 | cut -d/ -f1)" +set -o pipefail cd "${tmp}/${extract_dir}" CC=musl-gcc CFLAGS="-O2" LDFLAGS="-static" ./configure --disable-xxhash --disable-zstd --disable-lz4