From c2abbecf52cbd8476af91cbf2eb1a78ba307a042 Mon Sep 17 00:00:00 2001 From: zenobit Date: Fri, 17 Mar 2023 00:52:53 +0100 Subject: [PATCH] dh --- dh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dh b/dh index 6d69189..51b8536 100755 --- a/dh +++ b/dh @@ -27,14 +27,14 @@ if [ $1 = -t ] ; then if ! command -v fzf >/dev/null 2>&1; then echo "You are missing fzf..." && exit 255 fi - printf ' Prepared VMs:\n-------------\n' + printf ' Prepared VMs:\n-------------\n%s\n' # Check if there are any VMs if [ ${#vms[@]} -eq 0 ]; then echo "No VMs found." exit 1 fi # Print the names of the available VMs - printf "%s\n" "${vms[@]%.conf}" + printf "%s\n" "${vms[@]%.*}" echo "-------------" # Action prompt printf " Do you want to create a new VM? (c)