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")

This commit is contained in:
Christopher Smith 2014-12-05 09:30:05 +11:00
parent 18c7f40a7f
commit 83b7ecdbe0

View file

@ -702,6 +702,7 @@ case "$COMMAND" in
STATIC_OPTIONS="$STATIC_OPTIONS --time $TIME"
fi
eval \
${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \
$ENCRYPT \
${DEST} | tee -a ${LOGFILE}
@ -710,6 +711,8 @@ case "$COMMAND" in
"collection-status")
OPTION="collection-status"
eval \
${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \
$ENCRYPT \
${DEST} | tee -a ${LOGFILE}