commit 0e8051b3c71bd1723b996d1802715f85854408cf
parent 77301ea8e8b68dc4e32cf90842e1e6a4e0fe30c4
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sun, 14 Jan 2024 17:41:32 +0100
bugfixes in network monitor script
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/taler-mdb-network-check.sh b/contrib/taler-mdb-network-check.sh
@@ -63,6 +63,8 @@ while getopts ':c:f:h' OPTION; do
done
shift $((OPTIND - 1))
+WORKER="$@"
+
dig -h > /dev/null || exit_fail "'dig' is required"
if [[ ${FAIL_PROG:-} = "" ]]
@@ -195,7 +197,7 @@ function check_network()
then
echo "Starting child using " $@
# shellcheck disable=SC2068
- $@ &
+ $WORKER &
CHILD_PID=$!
fi
}