diff options
author | Florian Dold <florian@dold.me> | 2023-04-12 15:36:50 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-12 15:36:50 +0200 |
commit | baa1ef996958355f7713bc09e21728e1c931bf7e (patch) | |
tree | fc96a367665d7ca99f81796a8ed7aa153e942506 /netzbon/functions.sh | |
parent | 7870c134928ffc971ecc723e20b22ad492d7f2c4 (diff) | |
download | deployment-baa1ef996958355f7713bc09e21728e1c931bf7e.tar.gz deployment-baa1ef996958355f7713bc09e21728e1c931bf7e.tar.bz2 deployment-baa1ef996958355f7713bc09e21728e1c931bf7e.zip |
netzbon: shellcheck
Diffstat (limited to 'netzbon/functions.sh')
-rwxr-xr-x | netzbon/functions.sh | 3 |
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 } |