aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-05-09 21:20:44 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-05-09 21:20:44 +0200
commita1bad3c0aaff664c243ef2596cdbcdc59cc306d5 (patch)
tree57832dd1be8a68b3027ad1b3e3cdbfea95a1740e
parentb7592f6b1824e12e5856d726547802ea336359db (diff)
email-backup: make sure to act on first cloud backup
-rw-r--r--email-backup4
1 files 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";
}