From fe80919ac396ac47d78ab37cf65fc019ec90af2e Mon Sep 17 00:00:00 2001 From: Nyr Date: Thu, 19 Oct 2023 16:10:53 +0200 Subject: [PATCH] Fix #3 --- wireguard-install.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index c178027..c194cf7 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -46,10 +46,16 @@ This version of Ubuntu is too old and unsupported." exit fi -if [[ "$os" == "debian" && "$os_version" -lt 10 ]]; then - echo "Debian 10 or higher is required to use this installer. +if [[ "$os" == "debian" ]]; then + if grep -q '/sid' /etc/debian_version; then + echo "Debian Testing and Debian Unstable are unsupported by this installer." + exit + fi + if [[ "$os_version" -lt 10 ]]; then + echo "Debian 10 or higher is required to use this installer. This version of Debian is too old and unsupported." - exit + exit + fi fi if [[ "$os" == "centos" && "$os_version" -lt 7 ]]; then