18c7f40a7f5d91138915d2292fc4ff0cc35dfcaa
- Author
- zertrin <zrk951@gmail.com>
- Committer
- zertrin <zrk951@gmail.com>
- Date
Message
Merge pull request #71 from martinec/master
fix: ensure a trailing slash in log dir name
Diff
1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
2index c5f6e749e599966cc5a4958db027029341435f32..192a2e5c182e48097badc36844622ea6a42bbcf9 100755
3--- a/duplicity-backup.sh
4+++ b/duplicity-backup.sh
5@@ -177,6 +177,9 @@ if [[ -n "$FTP_PASSWORD" ]]; then
6 export FTP_PASSWORD
7 fi
8
9+# Ensure a trailing slash always exists in the log directory name
10+LOGDIR="${LOGDIR%/}/"
11+
12 LOGFILE="${LOGDIR}${LOG_FILE}"
13 DUPLICITY="$(which duplicity)"
14