gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] 02/03: Improve distro detection in regional currency


From: gnunet
Subject: [taler-deployment] 02/03: Improve distro detection in regional currency script
Date: Thu, 29 Feb 2024 17:46:01 +0100

This is an automated email from the git hooks/post-receive script.

antoine pushed a commit to branch master
in repository deployment.

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

    Improve distro detection in regional currency script
---
 regional-currency/functions.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/regional-currency/functions.sh b/regional-currency/functions.sh
index 749d1bd..0663fec 100755
--- 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
+}

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]