aboutsummaryrefslogtreecommitdiffstats
path: root/backup-cloud.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-04-24 21:54:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-04-24 22:26:26 +0200
commit83e57e6aabcd59b453f0e96695e7ceaf31c1ad6b (patch)
tree01f4c9ea7d3751814e808855434748b522b51ba9 /backup-cloud.rsc
parentfb9feea5950caec1c9bd7b9a3188cc312bf61956 (diff)
parent82b5ae174ac15bb6c2b7180980da12c1908de7df (diff)
Merge branch 'FormatLine' into next
Diffstat (limited to 'backup-cloud.rsc')
-rw-r--r--backup-cloud.rsc7
1 files changed, 4 insertions, 3 deletions
diff --git a/backup-cloud.rsc b/backup-cloud.rsc
index b75d5cb..b6f6025 100644
--- a/backup-cloud.rsc
+++ b/backup-cloud.rsc
@@ -17,6 +17,7 @@
:global Identity;
:global DeviceInfo;
+:global FormatLine;
:global LogPrintExit2;
:global RandomDelay;
:global ScriptFromTerminal;
@@ -47,9 +48,9 @@ $WaitFullyConnected;
subject=([ $SymbolForNotification "floppy-disk,cloud" ] . "Cloud backup"); \
message=("Uploaded backup for " . $Identity . " to cloud.\n\n" . \
[ $DeviceInfo ] . "\n\n" . \
- "Name: " . $Cloud->"name" . "\n" . \
- "Size: " . $Cloud->"size" . " B (" . ($Cloud->"size" / 1024) . " KiB)\n" . \
- "Download key: " . $Cloud->"secret-download-key"); silent=true });
+ [ $FormatLine "Name" ($Cloud->"name") ] . "\n" . \
+ [ $FormatLine "Size" ($Cloud->"size" . " B (" . ($Cloud->"size" / 1024) . " KiB)") ] . "\n" . \
+ [ $FormatLine "Download key" ($Cloud->"secret-download-key") ]); silent=true });
} on-error={
$SendNotification2 ({ origin=$0; \
subject=([ $SymbolForNotification "floppy-disk,warning-sign" ] . "Cloud backup failed"); \