From e8e4ae088f81aa720609c345015180c974d49bc4 Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 11 Sep 2024 11:40:02 +0400 Subject: [PATCH] basedir --- all.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/all.sh b/all.sh index acf5027..2751f32 100755 --- a/all.sh +++ b/all.sh @@ -1,5 +1,6 @@ #!/bin/bash +BASEDIR=$(dirname "$0") FILE=${1:-listes.txt} if ! command -v parallel >/dev/null; then @@ -7,6 +8,8 @@ if ! command -v parallel >/dev/null; then exit 1 fi +cd "$BASEDIR" + echo -n "" >.errors parallel -a "$FILE" ./monit-sympa.sh