taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 6ed69587af163a52ae3ad159654503d72a45055d
parent 7bfb0a93c4664d79be8a87c60c7c0f615e1fa045
Author: Iván Ávalos <avalos@disroot.org>
Date:   Wed, 28 Feb 2024 08:22:25 -0600

Improve distro detection in regional currency script

Diffstat:
Mregional-currency/functions.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/regional-currency/functions.sh b/regional-currency/functions.sh @@ -26,10 +26,11 @@ function check_user() { # status if distro not supported. function detect_distro() { unset DISTRO + [[ -f /etc/os-release ]] && source /etc/os-release # shellcheck disable=SC2034 - uname -a | grep Ubuntu >/dev/null && DISTRO=ubuntu && return 0 + echo $NAME | grep Ubuntu >/dev/null && DISTRO=ubuntu && return 0 # shellcheck disable=SC2034 - uname -a | grep Debian >/dev/null && DISTRO=debian && return 0 + echo $NAME | grep Debian >/dev/null && DISTRO=debian && return 0 echo "Unsupported distro, should be either ubuntu or debian" >&2 return 1 -} -\ No newline at end of file +}