e7fe9ddceeb0dedca4adabb4c52e3acbf0095b4e

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Fix log file

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index 71666a9e0ec0629796c2b6c21a5c7a4e30b28801..f76aa0a10dc1450159dced43bfae7b2fc765a43e 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -217,7 +217,7 @@ fi
 6 # Setup logging as soon as possible, in order to be able to perform i/o redirection
 7 
 8 LOGDIR=${LOGDIR:-"${HOME}/.local/log/duplicity/"}
 9-LOG_FILE=${LOGDIR:-"duplicity-$(date +%Y-%m-%dT%H:%M:%S).log"}
10+LOG_FILE=${LOG_FILE:-"duplicity-$(date +%Y-%m-%dT%H:%M:%S).log"}
11 
12 # Ensure a trailing slash always exists in the log directory name
13 LOGDIR="${LOGDIR%/}/"