fix local i
This commit is contained in:
parent
f21e9f3336
commit
0a0bc8d193
@ -1,6 +1,7 @@
|
||||
function g_num_valid_number {
|
||||
[ -z "$1" ] && return 1
|
||||
local f_arg=( "0" "$@" )
|
||||
local i
|
||||
for (( i=0; i<=$#; i++ ))
|
||||
do
|
||||
if ! [[ ${f_arg[$i]} =~ ^(-)?(\.)?[0-9]+(\.)?([0-9]+)?$ ]]
|
||||
|
Loading…
Reference in New Issue
Block a user