From 11eec3138e855569ef604999c3ed87ebf0a832d1 Mon Sep 17 00:00:00 2001 From: Arnie Date: Wed, 22 Aug 2018 08:47:32 +0200 Subject: [PATCH] Fix reading the continue value --- windows/install-docker-in-wsl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/install-docker-in-wsl.sh b/windows/install-docker-in-wsl.sh index 0a385e8..64c9092 100755 --- a/windows/install-docker-in-wsl.sh +++ b/windows/install-docker-in-wsl.sh @@ -17,7 +17,7 @@ installDocker() { echo "Does the fingerprint match [9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88] ? [y]/n" read continue - [[ "${continue}" != "" ]] && [[ "${continue}" = "y" ]] && [[ "${continue}" = "Y" ]] && return 137 + [[ "${continue}" != "" ]] && [[ "${continue}" != "y" ]] && [[ "${continue}" != "Y" ]] && return 137 distribution=$(lsb_release -is | tr '[:upper:]' '[:lower:]') codename=$(lsb_release -cs) @@ -31,7 +31,7 @@ installDocker() { echo "y/[n]" read continue - [[ "${continue}" != "" ]] && [[ "${continue}" = "y" ]] && [[ "${continue}" = "Y" ]] && return 0 + [[ "${continue}" != "" ]] && [[ "${continue}" != "y" ]] && [[ "${continue}" != "Y" ]] && return 0 sudo usermod -aG docker ${USER}