mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Allow long lines of text by resetting number of spaces to 0 when needed
This commit is contained in:
parent
983e293eb1
commit
b553f01b2a
@ -409,6 +409,7 @@
|
||||
LINESIZE=`echo "${TEXT}" | wc -m | tr -d ' '`
|
||||
if [ ${SHOWDEBUG} -eq 1 ]; then DEBUGTEXT=" [${PURPLE}DEBUG${NORMAL}]"; else DEBUGTEXT=""; fi
|
||||
if [ ${INDENT} -gt 0 ]; then SPACES=$((62 - INDENT - LINESIZE)); fi
|
||||
if [ ${SPACES} -lt 0 ]; then SPACES=0; fi
|
||||
if [ ${CRONJOB} -eq 0 ]; then
|
||||
# Check if we already have already discovered a proper echo command tool. It not, set it default to 'echo'.
|
||||
if [ "${ECHOCMD}" = "" ]; then ECHOCMD="echo"; fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user