Cleanup if create is aborted
This commit is contained in:
parent
930e9568d4
commit
aa0d0c6d1d
3
jlmkr.py
3
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
|
return 1
|
||||||
|
|
||||||
with contextlib.suppress(FileNotFoundError):
|
with contextlib.suppress(FileNotFoundError):
|
||||||
|
|
Loading…
Reference in New Issue