Skip to content
Snippets Groups Projects
Commit 486eb1dc authored by elijah's avatar elijah
Browse files

added value for loglevel

parent 900f2691
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment