From f7537095ddbd747ca746fd4e71f474161825e853 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Wed, 13 Dec 2023 13:12:22 -0500 Subject: [PATCH] Corrections to consul discovery, 2 --- scripts/consul | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/consul b/scripts/consul index 7b89f0c..6a62cff 100755 --- a/scripts/consul +++ b/scripts/consul @@ -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"