Use suggested array creation to fix linter error

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12 2019-07-10 19:52:17 -07:00
parent fa8751f9ad
commit c156af020c
No known key found for this signature in database
GPG Key ID: ABB8FC9789AF524D
1 changed files with 1 additions and 1 deletions

View File

@ -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)