1
0
Fork 0

clean up ntfy func

This commit is contained in:
Luca Bilke 2024-02-28 15:47:35 +01:00
parent 1daf92aa3f
commit c68c99dbfe
1 changed files with 2 additions and 5 deletions

View File

@ -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: $?"
}