mirror of
https://github.com/zoni/obsidian-export.git
synced 2024-06-27 03:35:24 +02:00
set -o pipefail is a bashism that not all shells support. Notably, this fails with the default /bin/sh on GitHub Actions Linux runners
12 lines
184 B
Bash
Executable File
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
|