From: Colin Watson Date: Wed, 30 Apr 2008 16:45:57 +0000 (+0000) Subject: add notify-cmd wrapper X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=0eb205128524f7789a0464b449e98b4e2449a7cd;p=bin.git add notify-cmd wrapper --- diff --git a/notify-cmd b/notify-cmd new file mode 100755 index 0000000..1db0cab --- /dev/null +++ b/notify-cmd @@ -0,0 +1,10 @@ +#! /bin/sh + +$@ +CODE="$?" +if [ "$CODE" = 0 ]; then + notify-send -t 10000 "$1 succeeded" +else + notify-send -t 10000 "$1 failed ($CODE)" +fi +exit $CODE