diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-03 10:03:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-05-03 10:03:26 +0000 |
commit | 676997876571ef21cc9b3d480e2942c266c8300e (patch) | |
tree | 0ea0980c104f21d1826272d0964ffb1649542523 | |
parent | Adding -v, --verbose option to container-create command to be used e.g. when ... (diff) | |
download | compute-tools-676997876571ef21cc9b3d480e2942c266c8300e.tar.xz compute-tools-676997876571ef21cc9b3d480e2942c266c8300e.zip |
Adding quotes for consistency in bash-completion.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rw-r--r-- | share/bash-completion/container | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container index 29643c2..89d5a72 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -48,7 +48,7 @@ _container() console|con) case "${prev}" in -n|--name) - opts=$(container list -s -f shell) + opts="$(container list -s -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -64,13 +64,13 @@ _container() create) case "${prev}" in -n|--name) - opts=$(cd /etc/container-tools/debconf 2>/dev/null && ls *.cfg 2>/dev/null | sed -e 's/.cfg$//g') + opts="$(cd /etc/container-tools/debconf 2>/dev/null && ls *.cfg 2>/dev/null | sed -e 's/.cfg$//g')" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; -s|--script) - opts=$(cd /usr/share/container-tools/scripts && find -maxdepth 1 -not -type d -and -not -name 'default' -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort) + opts="$(cd /usr/share/container-tools/scripts && find -maxdepth 1 -not -type d -and -not -name 'default' -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -86,7 +86,7 @@ _container() enter) case "${prev}" in -n|--name) - opts=$(container list -s -f shell) + opts="$(container list -s -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -108,7 +108,7 @@ _container() limit) case "${prev}" in -n|--name) - opts=$(container list -a -f shell) + opts="$(container list -a -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -146,7 +146,7 @@ _container() move|mv) case "${prev}" in -o|--old) - opts=$(container list -t -f shell) + opts="$(container list -t -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -162,7 +162,7 @@ _container() remove|rm) case "${prev}" in -n|--name) - opts=$(container list -t -f shell) + opts="$(container list -t -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -178,7 +178,7 @@ _container() restart) case "${prev}" in -n|--name) - opts=$(container list -s -f shell) + opts="$(container list -s -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -194,7 +194,7 @@ _container() start) case "${prev}" in -n|--name) - opts=$(container list -t -f shell) + opts="$(container list -t -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -210,7 +210,7 @@ _container() status) case "${prev}" in -n|--name) - opts=$(container list -t -f shell) + opts="$(container list -t -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; @@ -226,7 +226,7 @@ _container() stop) case "${prev}" in -n|--name) - opts=$(container list -s -f shell) + opts="$(container list -s -f shell)" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; |