From: Elijah Saxon Date: Tue, 4 Jan 2005 17:50:00 +0000 (+0000) Subject: added value for loglevel X-Git-Tag: backupninja-0.4.2~3 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=commitdiff_plain;h=486eb1dc51fe0d5beef3a6e5764f9b4440e94cda added value for loglevel --- diff --git a/backupninja b/backupninja index 3b3b16d..962ff89 100755 --- a/backupninja +++ b/backupninja @@ -81,7 +81,7 @@ function printmsg() { echo -e "${color}$typestr: $@${endcolor}" >&2 fi - if [ "$print" -lt "$loglevel" ]; then + if [ $print -lt $loglevel ]; then if [ -w "$logfile" ]; then echo -e "${color}$typestr: $@${endcolor}" >> $logfile fi @@ -293,6 +293,7 @@ function process_action() { setupcolors conffile="/etc/backupninja.conf" +loglevel=3 ## process command line options