Add a method for check debian version is buster/10.

This commit is contained in:
Samson-W 2019-04-11 14:57:14 -04:00
parent d31530f2a6
commit 7d0de8fdfe
1 changed files with 3 additions and 3 deletions

View File

@ -18,11 +18,11 @@ is_debian_9()
is_debian_10()
{
if $(cat /etc/debian_version | grep -q "^10.[0-9]"); then
debug "Debian version is 9.*."
if $(cat /etc/debian_version | grep -q "^buster"); then
debug "Debian version is buster/10."
FNRET=0
else
debug "Debian version is not 9.*."
debug "Debian version is not buster/10."
FNRET=1
fi
}