fix
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BASEPATH=/root/rpc
|
BASEPATH="$(dirname "$0")"
|
||||||
source $BASEPATH/.env
|
source $BASEPATH/.env
|
||||||
|
|
||||||
blacklist=()
|
blacklist=()
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
# Add each line to the array
|
# Add each line to the array
|
||||||
blacklist+=("$line")
|
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/.$//')
|
pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user