mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-31 01:24:58 +02:00
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()
|
is_debian_10()
|
||||||
{
|
{
|
||||||
if $(cat /etc/debian_version | grep -q "^10.[0-9]"); then
|
if $(cat /etc/debian_version | grep -q "^buster"); then
|
||||||
debug "Debian version is 9.*."
|
debug "Debian version is buster/10."
|
||||||
FNRET=0
|
FNRET=0
|
||||||
else
|
else
|
||||||
debug "Debian version is not 9.*."
|
debug "Debian version is not buster/10."
|
||||||
FNRET=1
|
FNRET=1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user