From 22ceeaa9262000234b8209d29e14e3ce73d67e5b Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Tue, 3 Mar 2020 13:56:33 -0600 Subject: [PATCH] Added detection of PureOS in /etc/os-release --- include/osdetection | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/osdetection b/include/osdetection index cf9d1eac..5a136732 100644 --- a/include/osdetection +++ b/include/osdetection @@ -180,6 +180,13 @@ OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_NAME="Debian" ;; + "pureos") + LINUX_VERSION="PureOS" + OS_FULLNAME=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_NAME="PureOS" + ;; "manjaro") LINUX_VERSION="Manjaro" OS_FULLNAME="Manjaro Linux"