From: Nicolas Boisselier Date: Sun, 17 Feb 2019 21:38:50 +0000 (+0000) Subject: etc/profile.d/sys.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=db32a20458c85382e34d41f382dccfd0ebcdc4ce;p=nb.git etc/profile.d/sys.sh --- diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index e0e86737..e5837484 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -23,6 +23,7 @@ sys_os() { ) fi #[ -r /etc/debian_version ] && echo Debian $(cat /etc/debian_version) && return + echo $(sw_vers 2>/dev/null | awk -F':\t' '/^(ProductName|ProductVersion)/{print $2}' | head -2) && return } sys_date_install() {