Codebase list ruby-ftw / fresh-snapshots/main notify-failure.sh
fresh-snapshots/main

Tree @fresh-snapshots/main (Download .tar.gz)

notify-failure.sh @fresh-snapshots/mainraw · history · blame

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