From 77e9293295e4606b32c261512b0ef3e32a2d674c Mon Sep 17 00:00:00 2001 From: askiiart Date: Thu, 7 Nov 2024 15:18:52 -0600 Subject: [PATCH] have blend handle no distro being specified itself --- user | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/user b/user index 3be3832..c6cef81 100755 --- a/user +++ b/user @@ -164,7 +164,11 @@ def create_container(container_name, distro): if subprocess.run(['podman', 'container', 'exists', container_name], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL).returncode == 0: error(f'container {colors.bold}{container_name}{colors.reset} already exists') exit(1) - exit(subprocess.run(['blend', 'create-container', '-cn', container_name, '-d', distro]).returncode) + args = ['blend', 'create-container', '-cn', container_name] + # blend handles no distro being specified already + if distro: + args.extend(['-d', distro]) + exit(subprocess.run(args).returncode) @cli.command("delete-container") @click.argument('container')