Merge pull request #1254 from DundarGoc/SC2178

Fixed shellcheck warnings SC2178 and SC2128.
This commit is contained in:
4s3ti 2021-02-14 19:10:44 +01:00 committed by GitHub
commit 6406fcfafd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -688,7 +688,8 @@ validIP(){
} }
validIPAndNetmask(){ validIPAndNetmask(){
local ip=$1 local ip
ip=$1
local stat=1 local stat=1
ip="${ip/\//.}" ip="${ip/\//.}"