Selaa lähdekoodia

Merge pull request #23299 from albers/completion-dockerd-path

fix bash completion for dockerd invoked with path
Vincent Demeester 9 vuotta sitten
vanhempi
commit
4b2b5214a4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      contrib/completion/bash/docker

+ 1 - 1
contrib/completion/bash/docker

@@ -2319,7 +2319,7 @@ _docker() {
 	done
 	done
 
 
 	local binary="${words[0]}"
 	local binary="${words[0]}"
-	if [[ $binary == dockerd ]] ; then
+	if [[ $binary == ?(*/)dockerd ]] ; then
 		# for the dockerd binary, we reuse completion of `docker daemon`.
 		# for the dockerd binary, we reuse completion of `docker daemon`.
 		# dockerd does not have subcommands and global options.
 		# dockerd does not have subcommands and global options.
 		command=daemon
 		command=daemon