run-testsuite 300 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. set -e
  3. TANG=
  4. for f in /usr/lib/*/nagios/plugins/tang ; do
  5. [ -f "$f" ] || continue
  6. [ -x "$f" ] || continue
  7. TANG="$f"
  8. done
  9. if [ -z "$TANG" ] ; then
  10. echo 'E: No (nagios-)tang executable found'
  11. exit 1
  12. fi
  13. export PATH="$(dirname "$TANG"):/usr/libexec:$PATH"
  14. exec ./tang