fpm/notify-failure.sh

16 lines
190 B
Bash
Raw Permalink Normal View History

2012-03-01 00:55:36 +08:00
#!/bin/sh
"$@"
status=$?
if [ ! -z "$TMUX" ] ; then
if [ "$status" -ne 0 ] ; then
tmux display-message "Tests Fail"
else
tmux display-message "Tests OK"
fi
fi
exit $status