fix(cli): resolve _snap_tmp_template NameError in atomic snapshot block

This commit is contained in:
Iko 2026-08-14 16:43:28 +07:00
parent c896c09c42
commit 47f54cbb05
No known key found for this signature in database
GPG Key ID: 9166D30F6FE70F56
1 changed files with 0 additions and 1 deletions

View File

@ -940,7 +940,6 @@ class BaseEnvironment(ABC):
# that later expands the ``mv`` operand, keeping both consistent.
if self._snapshot_ready:
parts.append(
f"__hermes_snap_tmp=$(mktemp {_snap_tmp_template}) && "
f"{{ {_export_dump_excluding_session_vars(_snap_tmp, passthrough_names)} "
f"&& mv -f {_snap_tmp} {_quoted_snap}; }} "
f"2>/dev/null || rm -f {_snap_tmp} 2>/dev/null || true"