Skip to content

Commit

Permalink
Fix verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Lefranc committed Nov 19, 2015
1 parent 4d4eb55 commit 827ef83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgbackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function log_info() {
if [ "$verbose" == "no" ]; then
printf "%s --> %s\n" "$(date +%Y-%m-%d-%T)" "$*" >>"$logfile"
else
printf "%s --> %s\n" "$(date +%Y-%m-%d-%T)" "$*" | tee "$logfile"
printf "%s --> %s\n" "$(date +%Y-%m-%d-%T)" "$*" | tee -a "$logfile"
fi
}

Expand Down

0 comments on commit 827ef83

Please sign in to comment.