1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 11:31:46 +00:00

fix: Use single quotes in trap

Use single quotes, otherwise this expands now rather than
when signalled.
This commit is contained in:
Jack Phallen
2026-01-04 22:27:14 -05:00
parent 62ef283943
commit c6da399ab7

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