diff options
Diffstat (limited to '.bash/vars.bash')
| -rw-r--r-- | .bash/vars.bash | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.bash/vars.bash b/.bash/vars.bash index 55a59f3..3bc68cd 100644 --- a/.bash/vars.bash +++ b/.bash/vars.bash @@ -30,6 +30,8 @@ if [ -r "/etc/os-release" ];then OSNAME="$(grep ^ID /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')" if grep '^DEBIAN_VERSION_FULL' /etc/os-release >/dev/null 2>&1; then OSVER="$(grep '^DEBIAN_VERSION_FULL' /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')" + elif grep '^BUILD_ID' /etc/os-release >/dev/null 2>&1; then + OSVER="$(grep '^BUILD_ID' /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')" else OSVER="$(grep '^VERSION_ID' /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')" fi |
