mirror of
https://github.com/pivpn/pivpn.git
synced 2025-01-31 16:59:48 +00:00
Fixed shellcheck warnings SC2178 and SC2128.
SC2178: Variable was used as an array but is now assigned a string. SC2128: Expanding an array without an index only gives the first element. It's apparently a known bug that shellcheck can't both declare a variable local and assign a value to it without raising this issue. https://github.com/koalaman/shellcheck/wiki/SC2178
This commit is contained in:
parent
58af83b882
commit
9cdca47689
1 changed files with 2 additions and 1 deletions
|
@ -689,7 +689,8 @@ validIP(){
|
||||||
}
|
}
|
||||||
|
|
||||||
validIPAndNetmask(){
|
validIPAndNetmask(){
|
||||||
local ip=$1
|
local ip
|
||||||
|
ip=$1
|
||||||
local stat=1
|
local stat=1
|
||||||
ip="${ip/\//.}"
|
ip="${ip/\//.}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue