From 26970ab687ba925ea407d5354a302b99b687559a Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 17 Oct 2020 09:40:51 +0200 Subject: Added Zim Notebook backup --- duply/scripts/duplicity/duply_common.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'duply/scripts') 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 -- cgit v1.2.3