mirror of https://github.com/CISOfy/lynis.git
Changed counting with -m to support locale
This commit is contained in:
parent
d2175e833d
commit
d5bdde7a93
|
@ -215,8 +215,8 @@
|
||||||
if [ ! "${TEXT}" = "" ]; then
|
if [ ! "${TEXT}" = "" ]; then
|
||||||
# Show warnings always, and other messages if no quiet is being used
|
# Show warnings always, and other messages if no quiet is being used
|
||||||
if [ ${QUIET} -eq 0 -o "${RESULT}" = "WARNING" ]; then
|
if [ ${QUIET} -eq 0 -o "${RESULT}" = "WARNING" ]; then
|
||||||
# Display
|
# Display (counting with -m instead of -c, to support language locale)
|
||||||
LINESIZE=`echo "${TEXT}" | wc -c | tr -d ' '`
|
LINESIZE=`echo "${TEXT}" | wc -m | tr -d ' '`
|
||||||
if [ ${INDENT} -gt 0 ]; then SPACES=`expr 62 - ${INDENT} - ${LINESIZE}`; fi
|
if [ ${INDENT} -gt 0 ]; then SPACES=`expr 62 - ${INDENT} - ${LINESIZE}`; fi
|
||||||
if [ ${CRONJOB} -eq 0 ]; then
|
if [ ${CRONJOB} -eq 0 ]; then
|
||||||
# Check if we already have already discovered a proper echo command tool. It not, set it default to 'echo'.
|
# Check if we already have already discovered a proper echo command tool. It not, set it default to 'echo'.
|
||||||
|
|
Loading…
Reference in New Issue