fix: use sh instead of bash in pipeline (Alpine compat)

This commit is contained in:
Viktor Barzin 2026-04-14 17:29:14 +00:00
parent 91b97709b7
commit f2e7367401
2 changed files with 3 additions and 3 deletions

View file

@ -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 <post-mortem.md>}"

View file

@ -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"