From 350e0aedafc5ec4a838566a99d2744eea355a0f7 Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Sun, 19 Mar 2023 16:40:01 +0100 Subject: [PATCH] Update createmedium command --- VBoxManage | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/VBoxManage b/VBoxManage index 6d69a72..8a5889b 100644 --- a/VBoxManage +++ b/VBoxManage @@ -1016,8 +1016,8 @@ _VBoxManage() { COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) ) ;; *) - [[ " ${COMP_WORDS[@]} " == *" --size "* || - " ${COMP_WORDS[@]} " == *" --sizebyte "* ]] && + [[ " ${COMP_WORDS[*]} " == *" --size "* || + " ${COMP_WORDS[*]} " == *" --sizebyte "* ]] && items=(--filename --diffparent --format --variant) _get_excluded_items "${items[@]}" COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) @@ -1031,12 +1031,12 @@ _VBoxManage() { _hdd_comp ;; --format) - COMPREPLY=( $(compgen -W "VDI VMDK VHD" --\ - ${cur}) ) + COMPREPLY=( $(compgen -W "VDI VMDK VHD" \ + -- ${cur}) ) ;; --variant) COMPREPLY=( $(compgen -W "Standard Fixed Split2G - Stream ESX Formatted" -- ${cur}) ) + Stream ESX Formatted RawDisk" -- ${cur}) ) ;; esac ;;