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
setupcolors
conffile="/etc/backupninja.conf"
+loglevel=3
## process command line options