ci: fix linter errors

This commit is contained in:
Michael Grote 2023-11-09 15:34:41 +01:00
parent 07d63f74d3
commit 5f4995e65a

5
run.sh
View file

@ -98,9 +98,10 @@ if [ -n "${SMTP_NETWORKS}" ]; then
for i in $(sed 's/,/\ /g' <<<$SMTP_NETWORKS); do
# shellcheck disable=SC2013,SC2001,2086
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"
elif grep -Eq "$ipv6re" <<<"$i" ; then
elif grep -Eq "$ipv6re" <<<$i ; then
# shellcheck disable=SC1073
readarray -d \/ -t arr < <(printf '%s' "$i") # shellcheck disable=SC1001
nets+=", [${arr[0]}]/${arr[1]}"
else