Merge pull request #8 from aboohner/master

Bugfix in nested ifs
This commit is contained in:
Samson.W 2019-08-24 02:45:33 +08:00 committed by GitHub
commit 105abac41c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
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
debug "Debian version is 9.*."
FNRET=0
@ -23,7 +23,7 @@ is_debian_9()
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
debug "Debian version is buster/10."
FNRET=0