This commit is contained in:
deajan 2018-10-02 10:51:45 +02:00
parent 4f76bb4ad2
commit 25070032c4
1 changed files with 1 additions and 1 deletions

View File

@ -1272,7 +1272,7 @@ function IsNumeric {
local value="${1}" local value="${1}"
if type expr > /dev/null 2>&1; then if type expr > /dev/null 2>&1; then
expr "$value" : ""^[-+]\?[0-9]*\.\?[0-9]\+$" > /dev/null 2>&1 expr "$value" : "^[-+]\?[0-9]*\.\?[0-9]\+$" > /dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo 1 echo 1
else else