From 464e19ba1cf83cc1babb30eff3ecde24b2e79567 Mon Sep 17 00:00:00 2001 From: David Schlosnagle Date: Sat, 19 Dec 2015 04:15:26 -0500 Subject: [PATCH] Delegate to docker-machine from wrapper Fix an issue with the bash __docker-machine-wrapper function where commands other than `use` would result in an error. Signed-off-by: David Schlosnagle --- contrib/completion/bash/docker-machine-wrapper.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker-machine-wrapper.bash b/contrib/completion/bash/docker-machine-wrapper.bash index b54891f48c..89aabfa3b5 100644 --- a/contrib/completion/bash/docker-machine-wrapper.bash +++ b/contrib/completion/bash/docker-machine-wrapper.bash @@ -47,7 +47,7 @@ EOF esac else # Just call the actual docker-machine app - $(which docker-machine) "$@" + command docker-machine "$@" fi }