From 8fd579c2cd52e12f411b5098bf87f7a419b6ecca Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Sun, 19 Mar 2023 18:41:01 +0100 Subject: [PATCH] Updated convertfromraw command --- VBoxManage | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/VBoxManage b/VBoxManage index 59bf254..8a6c7bc 100644 --- a/VBoxManage +++ b/VBoxManage @@ -982,11 +982,12 @@ _VBoxManage() { ;; convertfromraw) - local items=(--format --variant --uuid) - if [[ ${prev} == ${cmd} ]]; then - COMPREPLY=( $(compgen -W "${items[*]}" -- ${cur}) ) + COMPREPLY=( $(compgen -f -- ${cur}) ) + elif [[ ${#COMP_WORDS[@]} -eq 4 ]]; then + COMPREPLY=( $(compgen -f -- ${cur}) ) else + items=(--format --variant --uuid) _get_excluded_items "${items[@]}" COMPREPLY=( $(compgen -W "$result" -- ${cur}) ) case "${prev}" in