From e08d39ec7cec1911d21ce6933a140a067e898dda Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 3 Nov 2023 14:56:20 +0100 Subject: [PATCH] gaboshlib/g_num_is_between.sh aktualisiert --- gaboshlib/g_num_is_between.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gaboshlib/g_num_is_between.sh b/gaboshlib/g_num_is_between.sh index 3c0cc2d..8c531c3 100644 --- a/gaboshlib/g_num_is_between.sh +++ b/gaboshlib/g_num_is_between.sh @@ -38,7 +38,7 @@ function g_num_is_between { local f_to=${f_between1} fi # Check if given number is in or out range - if [ $(echo "${f_num} < ${f_from}" | bc -l) -ne 0 ] || [ $(echo "${f_num} > ${f_to}" | bc -l) -ne 0 ] + if [ $(g_calc "${f_num} < ${f_from}") -ne 0 ] || [ $(g_calc "${f_num} > ${f_to}") -ne 0 ] then return 1 else