1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +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"
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