POSIX sh empty value check compatibility - part 2

This commit is contained in:
erxspin 2017-02-24 21:49:28 +06:00
parent fbdca20dee
commit 99da3c8f4b
1 changed files with 2 additions and 2 deletions

View File

@ -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