From a1bad3c0aaff664c243ef2596cdbcdc59cc306d5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 9 May 2019 21:20:44 +0200 Subject: email-backup: make sure to act on first cloud backup --- email-backup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email-backup b/email-backup index e8f8f2b..5fe4684 100644 --- a/email-backup +++ b/email-backup @@ -52,10 +52,10 @@ # required to fetch information from cloud / system backup cloud print as-value; :if ([ / system backup cloud print count-only ] > 0) do={ - / system backup cloud remove-file [ find ]; + / system backup cloud remove-file ([ find ]->0); } / system backup cloud upload-file action=upload src-file=($FileName . ".backup"); - :set CloudStatus [ / system backup cloud get [ find ] secret-download-key ]; + :set CloudStatus [ / system backup cloud get ([ find ]->0) secret-download-key ]; } on-error={ :set CloudStatus "failed"; } -- cgit v1.2.3-70-g09d2