Corrections to consul discovery, 2

This commit is contained in:
Eric Renfro 2023-12-13 13:12:22 -05:00
parent d6d52d2ea2
commit f7537095dd
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -31,7 +31,7 @@ check() {
return 2
fi
if [[ -x "$(which consul)" ]]; then
CONSUL_PATH="$(basename "$(which consul)")"
CONSUL_PATH="$(dirname "$(which consul)")"
echo "Found Consul in $CONSUL_PATH"
else
echo "FATAL: Cannot execute Consul"