mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to use simpler way of getting get length
https://sourceforge.net/p/webadmin/bugs/5491/
This commit is contained in:
2
setup.sh
2
setup.sh
@@ -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 "***********************************************************************"
|
||||
|
||||
Reference in New Issue
Block a user