Commit 123123fb authored by nimrod's avatar nimrod
Browse files

Small notification improvements.

- Silence the curl output.
- Don't block on notifications.
parent e84e01f9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -339,9 +339,9 @@ __command_notifier () {
        then
            if [ "$exitstatus" -eq '0' ]
            then
                echo "$last_command has finished." | notify
                echo "$last_command has finished." | notify &
            else
                echo "$last_command has failed." | notify --urgency=critical
                echo "$last_command has failed." | notify --urgency=critical &
            fi
        fi
    fi
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ notify_send () {

nextcloud () {
    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.