1
0
Fork 0

restrict find to regular files

This commit is contained in:
Florian Schlegel 2020-08-23 02:35:33 +02:00
parent 5314908aec
commit 501206a5b4
1 changed files with 1 additions and 1 deletions

View File

@ -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