forked from ChCh/RandomVideo
restrict find to regular files
This commit is contained in:
parent
5314908aec
commit
501206a5b4
|
@ -29,6 +29,6 @@ if $(command -v pgrep) omxplayer > /dev/null; then
|
|||
|
||||
else
|
||||
playerpath=$(command -v "$player")
|
||||
$playerpath "$(find "$folder" -maxdepth 1 ! -name "$(basename $folder)"|sort -R |head -n1)" &
|
||||
$playerpath "$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" &
|
||||
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue