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"