summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index a994354..1ef3ac1 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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,