Fix OS check
This commit is contained in:
parent
843e30551c
commit
e8cff93034
|
@ -12,9 +12,10 @@ export myProfile="$ASTRONODE/profile"
|
||||||
|
|
||||||
## Check system kind
|
## Check system kind
|
||||||
[[ $(uname -a | grep arm) ]] && export ARM=yes || unset ARM
|
[[ $(uname -a | grep arm) ]] && export ARM=yes || unset ARM
|
||||||
if [[ $(grep -E 'stretch|18.|19.' /etc/os-release) ]]; then export OS=stretch;
|
if [[ $(grep -E '19.3|19.4' /etc/os-release) ]]; then export OS=buster;
|
||||||
elif [[ $(grep buster /etc/os-release) ]]; then export OS=buster;
|
elif [[ $(grep -E 'stretch|18.|19.' /etc/os-release) ]]; then export OS=stretch;
|
||||||
else echo "${c_red}OS not supported$c_"; exit 1; fi
|
else export OS=buster;
|
||||||
|
fi
|
||||||
|
|
||||||
[[ -e $myProfile ]] && rm $myProfile
|
[[ -e $myProfile ]] && rm $myProfile
|
||||||
touch $myProfile
|
touch $myProfile
|
||||||
|
|
Loading…
Reference in New Issue