From 8f5e5ad9445297f8f8b8c8be2293a2e4bdbb83bd Mon Sep 17 00:00:00 2001 From: LouisLam Date: Thu, 19 Aug 2021 12:47:11 +0800 Subject: [PATCH] install.sh - check docker is running --- extra/install.batsh | 2 +- install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/install.batsh b/extra/install.batsh index 31b8f425..cf14d0ae 100644 --- a/extra/install.batsh +++ b/extra/install.batsh @@ -211,7 +211,7 @@ if (type == "local") { bash("check=$(docker info)"); - bash("if [[\"$check\" == *\"Is the docker daemon running\"*]]; then + bash("if [[ \"$check\" == *\"Is the docker daemon running\"* ]]; then echo \"Error: docker is not running\" exit 1 fi"); diff --git a/install.sh b/install.sh index c3a48d9c..a840bb2c 100644 --- a/install.sh +++ b/install.sh @@ -175,7 +175,7 @@ else exit 1 fi check=$(docker info) - if [["$check" == *"Is the docker daemon running"*]]; then + if [[ "$check" == *"Is the docker daemon running"* ]]; then echo "Error: docker is not running" exit 1 fi