summaryrefslogtreecommitdiff
path: root/netzbon/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'netzbon/functions.sh')
-rwxr-xr-xnetzbon/functions.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/netzbon/functions.sh b/netzbon/functions.sh
index 3938aca..753d846 100755
--- a/netzbon/functions.sh
+++ b/netzbon/functions.sh
@@ -18,7 +18,10 @@ function check_user() {
# status if distro not supported.
function detect_distro() {
unset DISTRO
+ # shellcheck disable=SC2034
uname -a | grep Ubuntu >/dev/null && DISTRO=ubuntu && return 0
+ # shellcheck disable=SC2034
uname -a | grep Debian >/dev/null && DISTRO=debian && return 0
+ echo "Unsupported distro, should be either ubuntu or debian" >&2
return 1
}