Use suggested array creation to fix linter error

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
pull/2840/head
Mcat12 5 years ago
parent fa8751f9ad
commit c156af020c
No known key found for this signature in database
GPG Key ID: ABB8FC9789AF524D

@ -934,7 +934,7 @@ valid_ip() {
# and set the new one to a dot (period)
IFS='.'
# Put the IP into an array
ip=(${ip})
read -r -a ip <<< "${ip}"
# Restore the IFS to what it was
IFS=${OIFS}
## Evaluate each octet by checking if it's less than or equal to 255 (the max for each octet)

Loading…
Cancel
Save