From a620b0e6bb1720c0afbdc2aec092ca4fb6af1879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Tue, 17 Mar 2020 20:35:03 +0100 Subject: [PATCH] bin: Add notify script --- bin/notify | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/notify diff --git a/bin/notify b/bin/notify new file mode 100755 index 0000000..168d697 --- /dev/null +++ b/bin/notify @@ -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}"