From 4feb99cbe00c4dccf07ba1507b31cbf0364274ad Mon Sep 17 00:00:00 2001 From: Silas Krause Date: Wed, 1 Nov 2023 21:52:08 +0100 Subject: [PATCH] Check if docker installation was successful --- scripts/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 0d759681a..f25e62890 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -46,7 +46,11 @@ apt install -y curl wget git jq jc >/dev/null 2>&1 if ! [ -x "$(command -v docker)" ]; then echo "Docker is not installed. Installing Docker..." curl https://releases.rancher.com/install-docker/${DOCKER_VERSION}.sh | sh - echo "Docker installed successfully" + if [ -x "$(command -v docker)" ]; then + echo "Docker installed successfully." + else + echo "Docker installation failed." + exit 1 fi echo -e "-------------" echo -e "Check Docker Configuration..."