diff --git a/randomvideo.sh b/randomvideo.sh index e49ed8d..3090d58 100644 --- a/randomvideo.sh +++ b/randomvideo.sh @@ -5,5 +5,6 @@ $player="cvlc" $playerparam="--no-osd --play-and-exit" while true; do - $player $playerparam "$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" + file="$(find "$folder" -maxdepth 1 -type f |sort -R |head -n1)" + $player $playerparam $file done \ No newline at end of file