From 7cdad2d7511c53c7a88b9b7a88e41b1cc89eaf6c Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Sat, 30 Jan 2016 14:46:31 +0100 Subject: [PATCH] Added debug() function. Useful for developers. --- src/slackpkgplus.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index 36bc17e..5dfaef5 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -1183,6 +1183,9 @@ if [ "$SLACKPKGPLUS" = "on" ];then #### ===== SHOWLIST FUNCTIONS ====== ###### + function debug(){ + echo "DEBUG $(date +%H:%M:%S.%N) (${BASH_LINENO[*]}): $@" >&2 + }