summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-18 06:06:53 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-01 09:31:06 +0000
commit0e9735fd4af0cfa6253b8a56b712c21b618913c9 (patch)
tree62adb2bd582f35bee2916148d1d7ff20412dc8d2
parentHarmonizing head comments in container bash-completion. (diff)
downloadcompute-tools-0e9735fd4af0cfa6253b8a56b712c21b618913c9.tar.xz
compute-tools-0e9735fd4af0cfa6253b8a56b712c21b618913c9.zip
Looking up container create scripts dynamically in container bash-completion.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rw-r--r--share/bash-completion/container2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 1943133..123e5a4 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -73,7 +73,7 @@ _container()
;;
-s|--script)
- opts="debootstrap debconf default"
+ 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
;;