File: notify-failure.sh

package info (click to toggle)
ruby-insist 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: ruby: 378; makefile: 40; sh: 10
file content (15 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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