From f2e7367401dbb686b0ec9d3c0dbfe1cf0e334c04 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Tue, 14 Apr 2026 17:29:14 +0000 Subject: [PATCH] fix: use sh instead of bash in pipeline (Alpine compat) --- scripts/parse-postmortem-todos.sh | 4 ++-- scripts/postmortem-pipeline.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/parse-postmortem-todos.sh b/scripts/parse-postmortem-todos.sh index b9973f40..1442aa6d 100755 --- a/scripts/parse-postmortem-todos.sh +++ b/scripts/parse-postmortem-todos.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # parse-postmortem-todos.sh — Extract auto-implementable TODOs from a post-mortem markdown file # Usage: bash scripts/parse-postmortem-todos.sh docs/post-mortems/2026-04-14-foo.md # Output: JSON with file path and list of TODOs @@ -6,7 +6,7 @@ # Supports two table formats: # New: | Priority | Action | Type | Details | Status | # Old: | Action | Status | Details | (infers type from action text) -set -euo pipefail +set -eu PM_FILE="${1:?Usage: $0 }" diff --git a/scripts/postmortem-pipeline.sh b/scripts/postmortem-pipeline.sh index a0d09f7d..7b46e25e 100755 --- a/scripts/postmortem-pipeline.sh +++ b/scripts/postmortem-pipeline.sh @@ -19,7 +19,7 @@ fi echo "Post-mortem with TODOs: $PM_FILE" # 3. Parse TODOs -bash scripts/parse-postmortem-todos.sh "$PM_FILE" > /tmp/todos.json +sh scripts/parse-postmortem-todos.sh "$PM_FILE" > /tmp/todos.json cat /tmp/todos.json TODO_COUNT=$(jq '.safe_todos' /tmp/todos.json) echo "$TODO_COUNT safe TODO(s) found"