83b7ecdbe037caaf3d8e3685821d43a169f0755f

Author
Christopher Smith <csmith@squiz.net>
Committer
Christopher Smith <csmith@squiz.net>
Date

Message

doing a collection status and file list need to eval the command (like all the other commands already do) because if you have ssh options set in your config, it causes an error ("duplicity: error: no such option: -o")

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index 192a2e5c182e48097badc36844622ea6a42bbcf9..5444fb473b5e1427b376aadeae7c91f98b2a3425 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -702,6 +702,7 @@ case "$COMMAND" in
 6       STATIC_OPTIONS="$STATIC_OPTIONS --time $TIME"
 7     fi
 8 
 9+    eval \
10     ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \
11     $ENCRYPT \
12     ${DEST} | tee -a ${LOGFILE}
13@@ -710,6 +711,8 @@ case "$COMMAND" in
14 
15   "collection-status")
16     OPTION="collection-status"
17+
18+    eval \
19     ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \
20     $ENCRYPT \
21     ${DEST} | tee -a ${LOGFILE}