summaryrefslogtreecommitdiff
path: root/netzbon/functions.sh
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-04-12 15:36:50 +0200
committerFlorian Dold <florian@dold.me>2023-04-12 15:36:50 +0200
commitbaa1ef996958355f7713bc09e21728e1c931bf7e (patch)
treefc96a367665d7ca99f81796a8ed7aa153e942506 /netzbon/functions.sh
parent7870c134928ffc971ecc723e20b22ad492d7f2c4 (diff)
downloaddeployment-baa1ef996958355f7713bc09e21728e1c931bf7e.tar.gz
deployment-baa1ef996958355f7713bc09e21728e1c931bf7e.tar.bz2
deployment-baa1ef996958355f7713bc09e21728e1c931bf7e.zip
netzbon: shellcheck
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
}