Actions
Some checks failed
Lint / shellcheck (push) Has been cancelled

This commit is contained in:
2026-03-11 07:42:45 +01:00
parent f407b1c4af
commit 9ced2af562
8 changed files with 124 additions and 13 deletions

View File

@@ -1,16 +1,18 @@
#!/bin/sh
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
script_dir=$(CDPATH="" cd -- "$(dirname -- "$0")" && pwd)
awk_dir="$script_dir/awk"
sed_inplace() {
script="$1"
file="$2"
tmp="${file}.tmp.$$"
sed "$script" "$file" > "$tmp" && mv "$tmp" "$file" || {
if sed "$script" "$file" > "$tmp" && mv "$tmp" "$file"; then
return 0
else
rm -f "$tmp"
return 1
}
fi
}
temp_file="/tmp/markdown.$$.md"