From e8cff93034b24d4d68a3aca7498e569384082973 Mon Sep 17 00:00:00 2001 From: poka Date: Tue, 19 May 2020 21:28:09 +0200 Subject: [PATCH] Fix OS check --- .install/sys_checkOS.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.install/sys_checkOS.sh b/.install/sys_checkOS.sh index 4b6078c..c515523 100644 --- a/.install/sys_checkOS.sh +++ b/.install/sys_checkOS.sh @@ -12,9 +12,10 @@ export myProfile="$ASTRONODE/profile" ## Check system kind [[ $(uname -a | grep arm) ]] && export ARM=yes || unset ARM -if [[ $(grep -E 'stretch|18.|19.' /etc/os-release) ]]; then export OS=stretch; -elif [[ $(grep buster /etc/os-release) ]]; then export OS=buster; -else echo "${c_red}OS not supported$c_"; exit 1; fi +if [[ $(grep -E '19.3|19.4' /etc/os-release) ]]; then export OS=buster; +elif [[ $(grep -E 'stretch|18.|19.' /etc/os-release) ]]; then export OS=stretch; +else export OS=buster; +fi [[ -e $myProfile ]] && rm $myProfile touch $myProfile