Fix bkctld logging on non interactive usage

This commit is contained in:
Victor LABORIE 2017-12-04 11:49:08 +01:00
parent 1b2491e201
commit 3b40cb19d9

2
bkctld
View file

@ -506,7 +506,7 @@ log() {
if [ $? -eq 0 ]; then
sub_${subcommand} "$@" 2>&1 | tee -a $logfile
else
sub_${subcommand} "$@" > $logfile 2>&1
sub_${subcommand} "$@" >> $logfile 2>&1
fi
}