bin: Add notify script

This commit is contained in:
2020-03-17 20:35:03 +01:00
parent bb864aa726
commit a620b0e6bb

12
bin/notify Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -o nounset
cmd="${@}"
name="${1}"
${cmd[@]}
exit_code="$?"
notify-send "Command \"${name}\" finished" "Exit code: ${exit_code}\nFull command: ${cmd}"