gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] 02/02: netzbon: shellcheck


From: gnunet
Subject: [taler-deployment] 02/02: netzbon: shellcheck
Date: Wed, 12 Apr 2023 15:36:54 +0200

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

dold pushed a commit to branch master
in repository deployment.

commit baa1ef996958355f7713bc09e21728e1c931bf7e
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Apr 12 15:36:50 2023 +0200

    netzbon: shellcheck
---
 netzbon/.shellcheckrc             | 1 +
 netzbon/config/internal.conf      | 0
 netzbon/config/user.conf          | 0
 netzbon/config_launch_libeufin.sh | 2 ++
 netzbon/functions.sh              | 3 +++
 netzbon/setup-exchange.sh         | 1 +
 6 files changed, 7 insertions(+)

diff --git a/netzbon/.shellcheckrc b/netzbon/.shellcheckrc
new file mode 100644
index 0000000..e170f39
--- /dev/null
+++ b/netzbon/.shellcheckrc
@@ -0,0 +1 @@
+disable=SC2018,SC2019
diff --git a/netzbon/config/internal.conf b/netzbon/config/internal.conf
new file mode 100644
index 0000000..e69de29
diff --git a/netzbon/config/user.conf b/netzbon/config/user.conf
new file mode 100644
index 0000000..e69de29
diff --git a/netzbon/config_launch_libeufin.sh 
b/netzbon/config_launch_libeufin.sh
index 09bf077..d00e631 100755
--- a/netzbon/config_launch_libeufin.sh
+++ b/netzbon/config_launch_libeufin.sh
@@ -65,6 +65,7 @@ echo "LIBEUFIN_NEXUS_USERNAME=\"${LIBEUFIN_NEXUS_USERNAME}\"" 
>>config/internal.
 # Load configuration with
 # LIBEUFIN_NEXUS_DB_CONNECTION and
 # LIBEUFIN_NEXUS_PORT
+# shellcheck disable=SC1091
 source /etc/libeufin/nexus.env
 export LIBEUFIN_NEXUS_DB_CONNECTION
 
@@ -79,6 +80,7 @@ export 
LIBEUFIN_NEXUS_URL="http://localhost:${LIBEUFIN_NEXUS_PORT}";
 # Load configuration with
 # LIBEUFIN_SANDBOX_DB_CONNECTION and
 # LIBEUFIN_SANDBOX_PORT
+# shellcheck disable=SC1091
 . /etc/libeufin/sandbox.env
 export LIBEUFIN_SANDBOX_DB_CONNECTION
 
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
 }
diff --git a/netzbon/setup-exchange.sh b/netzbon/setup-exchange.sh
index 69e0238..ab7da70 100755
--- a/netzbon/setup-exchange.sh
+++ b/netzbon/setup-exchange.sh
@@ -15,6 +15,7 @@ notify_err() {
 trap '(exit 130)' INT
 trap '(exit 143)' TERM
 trap notify_err ERR
+# shellcheck disable=SC2154
 trap 'rc=$?; notify_exit $rc; exit $rc' EXIT
 
 # End of error handling setup

-- 
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]