error on empty
This commit is contained in:
parent
af25e84b7d
commit
0e086d1582
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user