fix local i

This commit is contained in:
olli 2024-06-20 10:47:27 +02:00
parent f21e9f3336
commit 0a0bc8d193

View File

@ -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]+)?$ ]]