Fix to use simpler way of getting get length

https://sourceforge.net/p/webadmin/bugs/5491/
This commit is contained in:
Ilia Rostovtsev
2021-06-19 15:31:08 +03:00
parent 8139e68f68
commit 80504935c0

View File

@@ -29,7 +29,7 @@ if [ $? != "0" ]; then
fi
spaces_count_def=10
verleneach=$(expr ${#ver} / 2)
verleneach=$(expr $(echo $ver | awk '{ print length }') / 2)
space_count=$(expr $spaces_count_def - $verleneach)
space_count_cond="$(printf "%*s%s" $space_count)"
echo "***********************************************************************"