Make section headers use indent.
parent
2f04e46bba
commit
ca44a67c9d
|
@ -27,16 +27,16 @@ has_binary() {
|
|||
|
||||
section() {
|
||||
if [ $PROFILE_DEBUG -gt 0 ]; then
|
||||
echo "${PROFILE_DEBUG_SECTION_START_PREFIX}$(tput smso)$*$(tput rmso)"
|
||||
log "${PROFILE_DEBUG_SECTION_START_PREFIX}$(tput smso)$*$(tput rmso)"
|
||||
fi
|
||||
DEBUG_INDENT=$(expr $DEBUG_INDENT + 1)
|
||||
}
|
||||
|
||||
section_end() {
|
||||
if [ $PROFILE_DEBUG -gt 0 ]; then
|
||||
echo "$PROFILE_DEBUG_SECTION_END_TEXT"
|
||||
fi
|
||||
DEBUG_INDENT=$(expr $DEBUG_INDENT - 1)
|
||||
if [ $PROFILE_DEBUG -gt 0 ]; then
|
||||
log "$PROFILE_DEBUG_SECTION_END_TEXT"
|
||||
fi
|
||||
}
|
||||
|
||||
log() {
|
||||
|
|
Loading…
Reference in New Issue