Merge pull request #63 from Grafcube/ignore-130
Treat code 130 as success
This commit is contained in:
commit
27c07dddb4
1 changed files with 4 additions and 1 deletions
|
@ -54,7 +54,10 @@ function _auto_notify_message() {
|
||||||
local urgency="normal"
|
local urgency="normal"
|
||||||
local transient="--hint=int:transient:1"
|
local transient="--hint=int:transient:1"
|
||||||
local icon=${AUTO_NOTIFY_ICON_SUCCESS:-""}
|
local icon=${AUTO_NOTIFY_ICON_SUCCESS:-""}
|
||||||
if [[ "$exit_code" != "0" ]]; then
|
# Exit code 130 is returned when a process is terminated with SIGINT.
|
||||||
|
# Since the user is already interacting with the program, there is no
|
||||||
|
# need to make the notification persistent.
|
||||||
|
if [[ "$exit_code" != "0" ]] && [[ "$exit_code" != "130" ]]; then
|
||||||
urgency="critical"
|
urgency="critical"
|
||||||
transient=""
|
transient=""
|
||||||
icon=${AUTO_NOTIFY_ICON_FAILURE:-""}
|
icon=${AUTO_NOTIFY_ICON_FAILURE:-""}
|
||||||
|
|
Loading…
Add table
Reference in a new issue