Add is_debian_buster function
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error

This commit is contained in:
Benoît S. 2019-07-05 10:12:24 +02:00
parent 8e2c8b306d
commit e7bf343048

View file

@ -59,6 +59,7 @@ detect_os() {
7) DEBIAN_RELEASE="wheezy";;
8) DEBIAN_RELEASE="jessie";;
9) DEBIAN_RELEASE="stretch";;
10) DEBIAN_RELEASE="buster";;
esac
fi
elif [ "$(uname -s)" = "OpenBSD" ]; then
@ -85,6 +86,9 @@ is_debian_jessie() {
is_debian_stretch() {
test "${DEBIAN_RELEASE}" = "stretch"
}
is_debian_buster() {
test "${DEBIAN_RELEASE}" = "buster"
}
debian_release() {
printf "%s" "${DEBIAN_RELEASE}"
}