obsidian-export/docs/generate.sh
Nick Groenen 4c74371b9e
Use /bin/bash when generating README
set -o pipefail is a bashism that not all shells support. Notably, this
fails with the default /bin/sh on GitHub Actions Linux runners
2023-09-26 09:08:56 +02:00

12 lines
184 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
TMPDIR=$(mktemp -d)
trap 'rm -rf "$TMPDIR"' EXIT
cargo run docs "$TMPDIR"
cp "${TMPDIR}/_combined.md" README.md