1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 12:06:45 +00:00

fix: address mo update hanging and imporve temporary file reliability

This commit is contained in:
Tw93
2026-01-12 14:55:42 +08:00
parent add3cca6ef
commit 5d5056fc9e
4 changed files with 20 additions and 16 deletions

View File

@@ -100,7 +100,7 @@ resolve_source_dir() {
local tmp
tmp="$(mktemp -d)"
trap 'stop_line_spinner 2>/dev/null; rm -rf "$tmp"' EXIT
trap "stop_line_spinner 2>/dev/null; rm -rf \"$tmp\"" EXIT
local branch="${MOLE_VERSION:-}"
if [[ -z "$branch" ]]; then