summaryrefslogtreecommitdiffhomepage
path: root/.github/scripts/build_test.sh
blob: 4e9287fb196233bfee6c6fe1b861d7332fc61da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

python3 "${ROOT_DIRECTORY}"/bazarr.py &
PID=$!

sleep 30

if kill -s 0 $PID
then
  echo "Bazarr is still running. We'll kill it..."
  kill $PID
  exit 0
else
  exit 1
fi