From 7753bdd66332eaaf4bf2e0e011d54330e35b0e0e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 26 Jun 2010 19:48:57 +0200 Subject: Fix resolve DEBUG level. --- localdebpool | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'localdebpool') diff --git a/localdebpool b/localdebpool index 19ff736..a8062e3 100755 --- a/localdebpool +++ b/localdebpool @@ -13,7 +13,8 @@ PUBBASE=~/public_websites/debian.jones.dk debugprint() { [ -n "$DEBUG" ] || return 0 - [ -z "$2" ] || [ "$DEBUG" -lt "$2" ] || return 0 + debuglevel="${2:-1}" + [ "$DEBUG" -ge "$debuglevel" ] || return 0 echo 1>&2 "$1" } -- cgit v1.2.3