From 99da3c8f4bd28b9ee11102ebb18fce4b7eec8b07 Mon Sep 17 00:00:00 2001 From: erxspin Date: Fri, 24 Feb 2017 21:49:28 +0600 Subject: [PATCH] POSIX sh empty value check compatibility - part 2 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index a2c6ee9..4177f85 100755 --- a/install.sh +++ b/install.sh @@ -55,11 +55,11 @@ os_unsupported () { exit 2; } -if [ $os_check = 'Raspbian' ]; then +if [ .$os_check = .'Raspbian' ]; then echo "${yellow}Detected Raspbian, using Debian for compatibility${normal}" os_check="Debian" fi -if [ $os_check = 'Debian' ]; then +if [ .$os_check = .'Debian' ]; then if [ $check_major_release -ge 8 ]; then verbose "Removing the CD image from /etc/apt/sources.list" sed -i '/cdrom:/d' /etc/apt/sources.list