Skip to content
Snippets Groups Projects
Commit cf002f8a authored by nimrod's avatar nimrod
Browse files

Show the basename in the monitor notification.

parent 84498b02
Branches
Tags
No related merge requests found
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment