diff --git a/hosts b/hosts index 97ba22a..acb0cda 100755 --- a/hosts +++ b/hosts @@ -90,23 +90,14 @@ _debug() { if [[ "${_USE_DEBUG:-"0"}" -eq 1 ]] then __DEBUG_COUNTER=$((__DEBUG_COUNTER+1)) - # Prefix debug message with "bug (U+1F41B)" - printf "🐛 %s " "${__DEBUG_COUNTER}" - "${@}" - printf "――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\\n" + { + # Prefix debug message with "bug (U+1F41B)" + printf "🐛 %s " "${__DEBUG_COUNTER}" + "${@}" + printf "―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\\n" + } 1>&2 fi } -# debug() -# -# Usage: -# debug "Debug info. Variable: $0" -# -# Print the specified message if the `$_USE_DEBUG` variable has been set. -# -# This is a shortcut for the _debug() function that simply echos the message. -debug() { - _debug echo "${@}" -} ############################################################################### # Error Messaging