From 051f8fc4f76b2bb875e24f01bf7901bc58195c6f Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Fri, 9 May 2025 18:25:01 -0700 Subject: [PATCH] client: src: completion: fix for when Docker is not found Per current default install instructions; as this is appended to either the per-interactive-shell startup file or aliases file, if Docker is not installed or is not found, without this fix, the end-user will either be effectively locked out of their session (after logging out) or they will not be able to start a new shell within their current session... --- client/src/docker/completion.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/docker/completion.bash b/client/src/docker/completion.bash index c77c724..10c5c23 100644 --- a/client/src/docker/completion.bash +++ b/client/src/docker/completion.bash @@ -30,7 +30,8 @@ # If not yet installed, gracefully exit if ! hash docker &>/dev/null; then - exit 0 + echo -e "\e[33;1m [WARN] Docker installation not found for docker-finance!\e[0m" >&2 + return fi # TODO: HACK: needed for `plugins` completion