Skip to content

Commit 03a91bf

Browse files
committed
fix: prevent broken pipe errors during Markflow installation
1 parent be81c4c commit 03a91bf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/wiki.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ jobs:
8282
uses: actions/checkout@v4
8383

8484
- name: Install Markflow
85-
run: curl -sL https://raw.githubusercontent.com/darmie/markflow/main/install.sh | bash
85+
run: |
86+
curl -sL https://raw.githubusercontent.com/darmie/markflow/main/install.sh | bash
87+
# Fix broken pipe: echo to closed grep pipe on Linux (grep -m1 exits early, SIGPIPE kills echo)
88+
sed -i 's/echo "$content" | grep/{ echo "$content" || true; } | grep/g' "$HOME/.markflow/markflow"
8689
8790
- name: Build site
8891
run: |

0 commit comments

Comments
 (0)