Commit 61b4be0e authored by Lev Walkin's avatar Lev Walkin

bc -> expr

parent 19e12b55
...@@ -67,7 +67,7 @@ verify_asn_types_in_file() { ...@@ -67,7 +67,7 @@ verify_asn_types_in_file() {
line=0 line=0
asn="" asn=""
while read asn; do while read asn; do
line=`echo "$line+1" | bc` line=`expr ${line} + 1`
if echo "$asn" | sed -e 's/--.*//;' | grep -vi "[A-Z]" > /dev/null; then if echo "$asn" | sed -e 's/--.*//;' | grep -vi "[A-Z]" > /dev/null; then
# Ignore lines consisting of just comments. # Ignore lines consisting of just comments.
continue; continue;
...@@ -98,9 +98,9 @@ verify_asn_type() { ...@@ -98,9 +98,9 @@ verify_asn_type() {
mkdir -p ${RNDTEMP} mkdir -p ${RNDTEMP}
if (set -e && cd "${RNDTEMP}" && compile_and_test "$asn" "${where}"); then if (set -e && cd "${RNDTEMP}" && compile_and_test "$asn" "${where}"); then
echo "OK [$asn] ${where}" echo "OK [$asn] ${where}"
tests_succeeded=`echo "$tests_succeeded + 1" | bc` tests_succeeded=`expr ${tests_succeeded} + 1`
else else
tests_failed=`echo "$tests_failed + 1" | bc` tests_failed=`expr ${tests_failed} + 1`
echo "FAIL [$asn] ${where}" echo "FAIL [$asn] ${where}"
fi fi
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment