mirror of
https://github.com/clearlinux/docker.git
synced 2026-05-18 04:34:08 +00:00
restrict bash completion for hostdir arg to directories
The previous state assumed that the HOSTPATH argument referred to a file. As clarified by moxiegirl in PR #11305, it is a directory. Adjusted completion to reflect this. Signed-off-by: Harald Albers <github@albersweb.de> Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <princess@docker.com> (github: jfrazelle) Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
committed by
Jessica Frazelle
parent
4f744ca781
commit
bf1829459f
@@ -325,7 +325,7 @@ _docker_cp() {
|
||||
(( counter++ ))
|
||||
|
||||
if [ $cword -eq $counter ]; then
|
||||
_filedir
|
||||
_filedir -d
|
||||
return
|
||||
fi
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user