Bugfix in nested ifs

This commit is contained in:
aboohner 2019-08-21 12:42:34 +02:00
parent a635b7d4a9
commit f7bf33fc4e
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
is_debian_9() is_debian_9()
{ {
if [ -r /etc/debian_version ] if [ -r /etc/debian_version ]; then
if $(cat /etc/debian_version | grep -q "^9.[0-9]"); then if $(cat /etc/debian_version | grep -q "^9.[0-9]"); then
debug "Debian version is 9.*." debug "Debian version is 9.*."
FNRET=0 FNRET=0
@ -23,7 +23,7 @@ is_debian_9()
is_debian_10() is_debian_10()
{ {
if [ -r /etc/debian_version ] if [ -r /etc/debian_version ]; then
if $(cat /etc/debian_version | grep -q "^10.[0-9]"); then if $(cat /etc/debian_version | grep -q "^10.[0-9]"); then
debug "Debian version is buster/10." debug "Debian version is buster/10."
FNRET=0 FNRET=0