diff --git a/home/dotfiles/profile b/home/dotfiles/profile index 80b80ee..0aac8fa 100644 --- a/home/dotfiles/profile +++ b/home/dotfiles/profile @@ -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() {