ci: fix linter errors

This commit is contained in:
Michael Grote 2023-11-09 15:36:46 +01:00
parent 5dc74aadda
commit 52efa3ec61

2
run.sh
View file

@ -101,7 +101,7 @@ if [ -n "${SMTP_NETWORKS}" ]; then
if grep -Eq "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,2}" <<<$i ; then if grep -Eq "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,2}" <<<$i ; then
nets+=", $i" nets+=", $i"
elif grep -Eq "$ipv6re" <<<$i ; then elif grep -Eq "$ipv6re" <<<$i ; then
# shellcheck disable=SC1073,SC1126,SC1072 # shellcheck disable=SC1073,SC1126,SC1072,SC1009
readarray -d \/ -t arr < <(printf '%s' "$i") # shellcheck disable=SC1001 readarray -d \/ -t arr < <(printf '%s' "$i") # shellcheck disable=SC1001
nets+=", [${arr[0]}]/${arr[1]}" nets+=", [${arr[0]}]/${arr[1]}"
else else