[commtech bench] Fix the zero test
This commit is contained in:
parent
6c2868e20c
commit
5682581335
|
@ -103,7 +103,7 @@ contains_zero()
|
|||
iMax=$((lineNum + 1 + nbCommTechs * 3))
|
||||
for i in $(seq $iMin 3 $iMax)
|
||||
do
|
||||
if head -$i $datFile | tail -1 | egrep "\.0+([^[:digit:]])?" > /dev/null
|
||||
if head -$i $datFile | tail -1 | grep -E "\.0+([^[:digit:]])?$" > /dev/null
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
|
@ -115,7 +115,7 @@ contains_zero()
|
|||
iMax=$((iMin + nbArg * 8 - 4))
|
||||
for i in $(seq $iMin 4 $iMax)
|
||||
do
|
||||
if head -$i $datFile | tail -1 | egrep "\.0+([^[:digit:]])?" > /dev/null
|
||||
if head -$i $datFile | tail -1 | grep -E "\.0+([^[:digit:]])?$" > /dev/null
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue