aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2005-01-04 17:50:00 +0000
committerElijah Saxon <elijah@riseup.net>2005-01-04 17:50:00 +0000
commit486eb1dc51fe0d5beef3a6e5764f9b4440e94cda (patch)
treec15fa4827e98ef7133cc13683cc7d80cc810747a
parent900f269135bc7a9c7c88cc23a6afc3143700d0e5 (diff)
downloadbackupninja-486eb1dc51fe0d5beef3a6e5764f9b4440e94cda.tar.gz
backupninja-486eb1dc51fe0d5beef3a6e5764f9b4440e94cda.tar.bz2
added value for loglevel
-rwxr-xr-xbackupninja3
1 files changed, 2 insertions, 1 deletions
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