diff --git a/RandomVideo.sh b/RandomVideo.sh index da79e09..93db886 100755 --- a/RandomVideo.sh +++ b/RandomVideo.sh @@ -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