From e7c6bb789e6d44c8d3f0238ef322f1511a0d96c3 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 23 Feb 2023 14:33:20 +0000 Subject: [PATCH] Show help if name is blank --- roles/home-cli/files/virtinst.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/home-cli/files/virtinst.sh b/roles/home-cli/files/virtinst.sh index 459bcc1..cc22e2d 100755 --- a/roles/home-cli/files/virtinst.sh +++ b/roles/home-cli/files/virtinst.sh @@ -3,7 +3,7 @@ _acp_vm_root="$HOME/virt/images" _acp_vm_session=qemu:///session _acp_vm_name=$1 -case "$_acp_vm_name" in +case "${_acp_vm_name:---help}" in "--help" | -*) echo "Usage: virtinst vmname --cdrom install.iso [other virt-install options]" >&2 exit 1