Skip to content

Commit 5888e2b

Browse files
fix: the ntfy topic has to be specified twice in case of error
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent 4f3a902 commit 5888e2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/NtfySummarizer/script.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ mess="An error happened during wdoc execution on input \"$NTFY_MESSAGE\"
3333
3434
Full output:
3535
$output"
36-
ntfy publish $topic_send "$mess" || echo $mess
36+
37+
# the topic has to be declared twice otherwise the env has priority
38+
NTFY_TOPIC="$topic_send" ntfy publish $topic_send "$mess" || echo $mess

0 commit comments

Comments
 (0)