From 30d3de31c167c7962eccc93127d11b6e7203b7a7 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Fri, 31 Jul 2020 10:59:17 +0200 Subject: [PATCH] [fix] Add is_buster function --- scripts/_common.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 21c15e5..f8e32bd 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -206,6 +206,15 @@ ynh_debian_release () { lsb_release --codename --short } +is_buster () { + if [ "$(ynh_debian_release)" == "buster" ] + then + return 0 + else + return 1 + fi +} + is_stretch () { if [ "$(ynh_debian_release)" == "stretch" ] then