chiark
/
gitweb
/
~cjwatson
/
bin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add notify-cmd wrapper
[bin.git]
/
notify-cmd
diff --git a/notify-cmd
b/notify-cmd
new file mode 100755
(executable)
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