summaryrefslogtreecommitdiffstats
path: root/src/main/docker
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/docker')
-rw-r--r--src/main/docker/scripts/start-zookeeper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/docker/scripts/start-zookeeper.sh b/src/main/docker/scripts/start-zookeeper.sh
index 148ecc8..6feb538 100644
--- a/src/main/docker/scripts/start-zookeeper.sh
+++ b/src/main/docker/scripts/start-zookeeper.sh
@@ -36,9 +36,8 @@ function print_servers() {
function validate_env() {
echo "Validating environment"
-
- if[ $HOST =~ (.*)-([0-9]+)$ ]]; then
+ if [[ $HOST =~ (.*)-([0-9]+)$ ]]; then
NAME=${BASH_REMATCH[1]}
ORD=${BASH_REMATCH[2]}
MY_ID=$((ORD+1))
@@ -46,6 +45,7 @@ function validate_env() {
else
echo "Failed to extract ordinal from hostname $HOST"
fi
+
echo "ZK_REPLICAS=$ZK_REPLICAS"