X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=backupninja;h=962ff899543336621a37896cf9204fc10a9613b8;hb=cc8aa6a27a68a8d8df9c29a937ac435883abfc8f;hp=3b3b16d0b363bb17ad7ea93a875d08a03feecc73;hpb=6bc45553f06e6c9b7c1162253bd0e28f3b07bbf2;p=matthijs%2Fupstream%2Fbackupninja.git 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