1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00

Merge pull request #6922 from tianon/bash-complete-build-directories

Update bash completion to only complete on directories as the argument to "docker build"
Upstream-commit: 439d7ea701b44724e1e02ff67a220fab7fa9bd1f
Component: engine
This commit is contained in:
Tianon Gravi
2014-07-10 00:26:14 -06:00

View File

@@ -156,7 +156,7 @@ _docker_build()
*)
local counter="$(__docker_pos_first_nonflag '-t|--tag')"
if [ $cword -eq $counter ]; then
_filedir
_filedir -d
fi
;;
esac