add some extra spaces at the end
This commit is contained in:
parent
2115e9b646
commit
11dd4ce316
1 changed files with 13 additions and 10 deletions
|
@ -16,18 +16,22 @@ LOG=/var/log/restic.log
|
||||||
#
|
#
|
||||||
# functions
|
# functions
|
||||||
timestamp() {
|
timestamp() {
|
||||||
# a timestamp for logging purposes
|
# a timestamp for logging purposes
|
||||||
TIMESTAMP=`date '+%Y-%m-%d %H:%M.%S'`
|
TIMESTAMP=`date '+%Y-%m-%d %H:%M.%S'`
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
# function to direct a message...
|
# function to direct a message...
|
||||||
log() {
|
log() {
|
||||||
#
|
#
|
||||||
# a timestamp for logging purposes
|
# a timestamp for logging purposes
|
||||||
timestamp
|
timestamp
|
||||||
if test -w $LOG ; then
|
if test -w $LOG ; then
|
||||||
echo "$SCRNAME: $TIMESTAMP $@" >> $LOG
|
echo "$SCRNAME: $TIMESTAMP $@" >> $LOG
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
space() {
|
||||||
|
echo "" >> $LOG
|
||||||
|
echo "" >> $LOG
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
# provide the DST and override defaults
|
# provide the DST and override defaults
|
||||||
|
@ -56,5 +60,4 @@ log "running cleanup"
|
||||||
$NICE $CMD $CLEAN >> $LOG
|
$NICE $CMD $CLEAN >> $LOG
|
||||||
# leave extra spaces
|
# leave extra spaces
|
||||||
log "done"
|
log "done"
|
||||||
log ""
|
space
|
||||||
log ""
|
|
||||||
|
|
Loading…
Reference in a new issue