diff options
-rwxr-xr-x | bin/pkg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,14 +25,14 @@ error=$'\e[0;31m' reset=$'\e[0m' function debug { - if (( !DEBUG )) || (( SILENT )); then return; fi + (( DEBUG )) || return typeset func line if [[ ${#*} -ge 3 ]] { func=$1 line=$2 shift 2 } - echo "(debug) $func:$line: $*" + echo "(debug) $func:$line: $*" >&2 } # I need function name and line number of the function _calling_ debug, |