Improve Debian detection

e.g. for Raspbian
This commit is contained in:
angristan 2018-09-29 20:14:44 +02:00
parent d2bd051d97
commit 043843850e

View File

@ -17,10 +17,10 @@ function tunAvailable () {
function checkOS () {
if [[ -e /etc/debian_version ]]; then
OS="debian"
source /etc/os-release
if [[ "$ID" == "debian" ]]; then
OS="debian"
if [[ ! $VERSION_ID =~ (8|9) ]]; then
echo "⚠️ Your version of Debian is not supported."
echo ""