Skip to content

Commit ec06ba8

Browse files
committed
fix: prevent SIGPIPE exit in debug verification pipes
head -5 closes the pipe early, causing codesign/otool to receive SIGPIPE (exit 141). With set -euo pipefail, this aborts the script. Add || true to debug pipe commands since they are non-critical.
1 parent 8ffb668 commit ec06ba8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src-tauri/before_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ if [[ "$TARGET_TRIPLE" == *"apple"* ]]; then
9999
"$BACKEND_DIST/syft-space-backend"; do
100100
if [ -f "$f" ]; then
101101
echo "--- $f ---"
102-
codesign -dvvv "$f" 2>&1 | head -5
102+
codesign -dvvv "$f" 2>&1 | head -5 || true
103103
codesign --verify --strict "$f" 2>&1 || true
104104
fi
105105
done
106106

107107
# Debug: show what the bootloader links against (helps determine if
108108
# Python.framework is needed at runtime or can be removed in the future)
109109
echo "=== Bootloader library dependencies ==="
110-
otool -L "$BACKEND_DIST/syft-space-backend" 2>&1 | head -20
110+
otool -L "$BACKEND_DIST/syft-space-backend" 2>&1 | head -20 || true
111111
fi
112112

113113
# 6. Build frontend

0 commit comments

Comments
 (0)