clean up ntfy func
This commit is contained in:
parent
1daf92aa3f
commit
c68c99dbfe
|
@ -72,9 +72,6 @@ function xsi() {
|
|||
}
|
||||
|
||||
function ntfy() {
|
||||
if "$@"; then
|
||||
notify-send "$1 success" "$@"
|
||||
else
|
||||
notify-send -u critical "$1 failure!" "$@"
|
||||
fi
|
||||
"$@" && { notify-send "$1 completed successfully"; return; }
|
||||
notify-send -u critical "$1 failed! " "exited with code: $?"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue