Improve Debian detection
e.g. for Raspbian
This commit is contained in:
parent
d2bd051d97
commit
043843850e
@ -17,10 +17,10 @@ function tunAvailable () {
|
|||||||
|
|
||||||
function checkOS () {
|
function checkOS () {
|
||||||
if [[ -e /etc/debian_version ]]; then
|
if [[ -e /etc/debian_version ]]; then
|
||||||
|
OS="debian"
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
|
|
||||||
if [[ "$ID" == "debian" ]]; then
|
if [[ "$ID" == "debian" ]]; then
|
||||||
OS="debian"
|
|
||||||
if [[ ! $VERSION_ID =~ (8|9) ]]; then
|
if [[ ! $VERSION_ID =~ (8|9) ]]; then
|
||||||
echo "⚠️ Your version of Debian is not supported."
|
echo "⚠️ Your version of Debian is not supported."
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user