Commit 8704ede9 authored by nimrod's avatar nimrod
Browse files

Show the basename in the monitor notification.

parent fb76acd9
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
#!/bin/sh
set -eu
[ "$#" -eq "0" ] || exit 0

[ "$#" -gt "0" ] || exit 0

if eval "$@"
then
    notify-send "${1#__} has finished."
    notify-send "$(basename "${1#__}") has finished."
else
    notify-send --urgency=critical "${1#__} has failed."
    notify-send --urgency=critical "$(basename "${1#__}") has failed."
fi