forked from ChCh/RandomVideo
set player as variable for pgrep and pkill
This commit is contained in:
parent
724f12200f
commit
929f3dec26
|
@ -18,12 +18,12 @@ if [ "buzzer" != "$1" -a "cron" != "$1" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if $(command -v pgrep) omxplayer > /dev/null; then
|
||||
if $(command -v pgrep) "$player > /dev/null; then
|
||||
if [ "$1" = "buzzer" ]; then
|
||||
$(command -v pkill) omxplayer
|
||||
$(command -v pkill) $player
|
||||
|
||||
elif [ "$1" = "cron" ]; then
|
||||
exit 0
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue