fix: use sh instead of bash in pipeline (Alpine compat)
This commit is contained in:
parent
91b97709b7
commit
f2e7367401
2 changed files with 3 additions and 3 deletions
|
|
@ -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>}"
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue