aboutsummaryrefslogtreecommitdiffstats
path: root/test/afb-test/fixtures/replay_launcher.sh
blob: 186b05b3bf5ee14148f06475a061bd15a60fd982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

PLAYER=$(command -v canplayer 2> /dev/null || command -v linuxcan-canplayer 2> /dev/null)
FILE=$1

if [ "$PLAYER" ]
then
	$PLAYER -I "$FILE" &
else
	echo "can-utils packages not installed"
	exit 1
fi

exit 0