fix: tool: disinto backup create — export Forgejo issues + disinto-ops git bundle (#1057) #1062

Merged
dev-bot merged 2 commits from fix/issue-1057 into main 2026-04-19 20:43:55 +00:00
Showing only changes of commit cb8c131bc4 - Show all commits

View file

@ -128,4 +128,9 @@ backup_create() {
local size local size
size=$(du -h "$outfile" | cut -f1) size=$(du -h "$outfile" | cut -f1)
echo "=== Backup complete: ${outfile} (${size}) ===" echo "=== Backup complete: ${outfile} (${size}) ==="
# Clean up before returning — the EXIT trap references the local $tmpdir
# which goes out of scope after return, causing 'unbound variable' under set -u.
trap - EXIT
rm -rf "$tmpdir"
} }