error on empty

This commit is contained in:
olli 2024-01-11 22:08:52 +01:00
parent 0e086d1582
commit 84d06df8e6

View File

@ -1,5 +1,5 @@
function g_num_valid_number {
[ -z "$@" ] && return 1
[ -z "$1" ] && return 1
local f_arg=( "0" "$@" )
for (( i=0; i<=$#; i++ ))
do