1
0
mirror of https://github.com/jordansissel/fpm synced 2025-02-22 01:41:13 +01:00
fpm/notify-failure.sh
2012-02-29 08:56:53 -08:00

16 lines
190 B
Bash

#!/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