Skip to content

Commit 6ace7bd

Browse files
authored
Update notifications.md (#1565)
- Added \ at EOL - Added `\` to escape `"` near `\n`
1 parent ee8f293 commit 6ace7bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/notifications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Example using a custom report template that always sends a session report after
110110
docker run -d \
111111
--name watchtower \
112112
-v /var/run/docker.sock:/var/run/docker.sock \
113-
-e WATCHTOWER_NOTIFICATION_REPORT="true"
113+
-e WATCHTOWER_NOTIFICATION_REPORT="true" \
114114
-e WATCHTOWER_NOTIFICATION_URL="discord://token@channel slack://watchtower@token-a/token-b/token-c" \
115115
-e WATCHTOWER_NOTIFICATION_TEMPLATE="
116116
{{- if .Report -}}
@@ -130,7 +130,7 @@ Example using a custom report template that always sends a session report after
130130
{{- end -}}
131131
{{- end -}}
132132
{{- else -}}
133-
{{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}}
133+
{{range .Entries -}}{{.Message}}{{\"\n\"}}{{- end -}}
134134
{{- end -}}
135135
" \
136136
containrrr/watchtower

0 commit comments

Comments
 (0)