diff --git a/duplicity-backup.sh b/duplicity-backup.sh index c5f6e74..192a2e5 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -177,6 +177,9 @@ if [[ -n "$FTP_PASSWORD" ]]; then export FTP_PASSWORD fi +# Ensure a trailing slash always exists in the log directory name +LOGDIR="${LOGDIR%/}/" + LOGFILE="${LOGDIR}${LOG_FILE}" DUPLICITY="$(which duplicity)"