forked from ChCh/RandomVideo
simplify player path
This commit is contained in:
parent
501206a5b4
commit
724f12200f
|
@ -28,7 +28,6 @@ if $(command -v pgrep) omxplayer > /dev/null; then
|
|||
fi
|
||||
|
||||
else
|
||||
playerpath=$(command -v "$player")
|
||||
$playerpath "$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" &
|
||||
$(command -v "$player") "$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" &
|
||||
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue