From aa0d0c6d1db21d4bda26fe3f24dd1066a8246f05 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:52:29 +0100 Subject: [PATCH] Cleanup if create is aborted --- jlmkr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index dd9166f..9d4d13a 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -1131,7 +1131,8 @@ def create_jail(jail_name="", config_path=None, distro="debian", release="bookwo ) ) - if agree("Abort creating jail?", "y"): + if agree("Continue?", "n"): + cleanup(jail_path) return 1 with contextlib.suppress(FileNotFoundError):