From c9cc24f2b50d31e31ea03e74b48a54c5870708d5 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Tue, 7 Dec 2021 23:35:01 +0530 Subject: [PATCH] fix if stmt --- consul-bootstrap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consul-bootstrap.sh b/consul-bootstrap.sh index 25a4869..c44acd4 100755 --- a/consul-bootstrap.sh +++ b/consul-bootstrap.sh @@ -62,7 +62,8 @@ done # write config file -if [[ $consultype -eq "client" ]] then +if [ $consultype -eq "client" ] +then cat >> /etc/consul.d/consul.hcl <