We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d9e54 commit 9798f87Copy full SHA for 9798f87
scripts/NtfySummarizer/script.sh
@@ -24,4 +24,9 @@ if [[ -z "$topic_receive" || -z "$topic_send" ]]; then
24
exit 1
25
fi
26
27
-python "${0:h}"/NtfySummarizer.py --topic="$topic_send"
+output=$(python "${0:h}"/NtfySummarizer.py --topic="$topic_send" 2>&1 >/dev/null) && echo "Success" && exit 0
28
+
29
+mess="An error happened during the python execution
30
+Full output:
31
+$output"
32
+ntfy publish $topic_send "$mess" || echo $mess
0 commit comments