Skip to content
Snippets Groups Projects
Commit 123123fb authored by nimrod's avatar nimrod
Browse files

Small notification improvements.

- Silence the curl output.
- Don't block on notifications.
parent e84e01f9
No related branches found
No related tags found
No related merge requests found
...@@ -339,9 +339,9 @@ __command_notifier () { ...@@ -339,9 +339,9 @@ __command_notifier () {
then then
if [ "$exitstatus" -eq '0' ] if [ "$exitstatus" -eq '0' ]
then then
echo "$last_command has finished." | notify echo "$last_command has finished." | notify &
else else
echo "$last_command has failed." | notify --urgency=critical echo "$last_command has failed." | notify --urgency=critical &
fi fi
fi fi
fi fi
......
...@@ -16,7 +16,7 @@ notify_send () { ...@@ -16,7 +16,7 @@ notify_send () {
nextcloud () { nextcloud () {
message="$(cat)" message="$(cat)"
curl -d "$message" https://notify.shore.co.il/send curl --silent -d "$message" https://notify.shore.co.il/send > /dev/null
} }
# Try hostname if present. # Try hostname if present.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment