aboutsummaryrefslogtreecommitdiff
path: root/duply/scripts
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2020-10-17 09:40:51 +0200
committerSébastien Dailly <sebastien@chimrod.com>2020-10-17 09:40:51 +0200
commit26970ab687ba925ea407d5354a302b99b687559a (patch)
tree57feaa51ed18a582b4139b22787bd1b54cf44bea /duply/scripts
parent9374bd47589f71d66de265517dea05628b74db38 (diff)
Added Zim Notebook backup
Diffstat (limited to 'duply/scripts')
-rw-r--r--duply/scripts/duplicity/duply_common.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/duply/scripts/duplicity/duply_common.sh b/duply/scripts/duplicity/duply_common.sh
index a1a8866..a55bfd6 100644
--- a/duply/scripts/duplicity/duply_common.sh
+++ b/duply/scripts/duplicity/duply_common.sh
@@ -17,7 +17,12 @@ function gpg_sec_avail {
read() {
if command -v zenity &> /dev/null
then
- eval $2=$(zenity --password)
+ RESULT=$(zenity --password 2>/dev/null)
+ if [ $? -ne 0 ]; then
+ command read $*
+ else
+ eval $2=${RESULT}
+ fi
else
command read $*
fi