ci: fix linter errors
This commit is contained in:
parent
07d63f74d3
commit
5f4995e65a
1 changed files with 3 additions and 2 deletions
5
run.sh
5
run.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue