1
0
forked from N0VA/kewt

feat: manifest/caching

This commit is contained in:
2026-05-05 20:27:35 +02:00
parent 3105c83290
commit b8e6c3afa8
11 changed files with 340 additions and 124 deletions

View File

@@ -15,7 +15,8 @@ sed_inplace() {
fi
}
temp_file=$(mktemp "${KEWT_TMPDIR:-/tmp}/markdown.XXXXXX")
temp_parent="${KEWT_TMPDIR:-${TMPDIR:-/tmp}}"
temp_file="${temp_parent}/markdown.$$.md"
cat "$@" > "$temp_file"
trap 'rm -f "$temp_file" "$temp_file.tmp" "$temp_file.fm"' EXIT INT TERM