Add a method for check debian version is buster/10.
This commit is contained in:
parent
d31530f2a6
commit
7d0de8fdfe
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue