From 49b49f972318722559c4cdcd6a80df382a676197 Mon Sep 17 00:00:00 2001 From: Orwill Towne Date: Fri, 22 Nov 2019 23:10:42 +0800 Subject: [PATCH] little tweak --- setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 686d3248..767b5839 100755 --- a/setup.sh +++ b/setup.sh @@ -12,14 +12,15 @@ _check_root() { exit 1 fi } + if [ -z "${CRI}" ]; then if [ ! -z "$(command -v docker)" ]; then CRI=docker else if [ ! -z "$(command -v podman)" ]; then CRI=podman _check_root - else do - echo "No Supported Container Runtime Interface Detected." + else + echo "No Support Container Runtime Interface Detected." exit 1 fi fi