Add is_debian_buster function

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