chiark / gitweb /
add notify-cmd wrapper
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Wed, 30 Apr 2008 16:45:57 +0000 (16:45 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Wed, 30 Apr 2008 16:45:57 +0000 (16:45 +0000)
notify-cmd [new file with mode: 0755]

diff --git a/notify-cmd b/notify-cmd
new file mode 100755 (executable)
index 0000000..1db0cab
--- /dev/null
@@ -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