forked from EvergreenCrypto/docker-finance
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...
This commit is contained in:
@@ -30,7 +30,8 @@
|
|||||||
|
|
||||||
# If not yet installed, gracefully exit
|
# If not yet installed, gracefully exit
|
||||||
if ! hash docker &>/dev/null; then
|
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
|
fi
|
||||||
|
|
||||||
# TODO: HACK: needed for `plugins` completion
|
# TODO: HACK: needed for `plugins` completion
|
||||||
|
|||||||
Reference in New Issue
Block a user