Cleanup if create is aborted

This commit is contained in:
Jip-Hop 2024-02-16 10:52:29 +01:00
parent 930e9568d4
commit aa0d0c6d1d
1 changed files with 2 additions and 1 deletions

View File

@ -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):