From f69081ec4eb0e86bd30de875e3bb3a04777f592b Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Tue, 19 Mar 2024 07:05:47 +0100 Subject: [PATCH] fix --- sync-status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync-status.sh b/sync-status.sh index 9c028409..1a239c98 100755 --- a/sync-status.sh +++ b/sync-status.sh @@ -1,13 +1,13 @@ #!/bin/bash -BASEPATH=/root/rpc +BASEPATH="$(dirname "$0")" source $BASEPATH/.env blacklist=() while IFS= read -r line; do # Add each line to the array blacklist+=("$line") -done < "path-blacklist.txt" +done < "$BASEPATH/path-blacklist.txt" pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//')