Skip to content

Commit be6dbea

Browse files
sinelawclaude
andcommitted
fix: avoid pipefail error in appimage build script
The `set -euo pipefail` combined with `| head -50` causes the script to fail when head closes the pipe early and sed receives SIGPIPE. Wrap the pipeline in a subshell with `|| true` to ignore the expected pipe error. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bb152d9 commit be6dbea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/fresh-editor/scripts/build-appimage.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ chmod +x "$APPDIR/AppRun"
154154

155155
echo ""
156156
echo "=== AppDir structure ==="
157-
find "$APPDIR" \( -type f -o -type l \) | sed "s|$APPDIR|Fresh.AppDir|" | head -50
157+
# Use subshell to avoid pipefail issues with head truncating output
158+
(find "$APPDIR" \( -type f -o -type l \) | sed "s|$APPDIR|Fresh.AppDir|" | head -50) || true
158159

159160
echo ""
160161
echo "=== Building AppImage ==="

0 commit comments

Comments
 (0)