error on empty

This commit is contained in:
olli 2024-01-11 14:50:29 +01:00
parent af25e84b7d
commit 0e086d1582

View File

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