From 724f12200f0dfa52be0aa64287646918fee1dec7 Mon Sep 17 00:00:00 2001 From: mmaster Date: Sun, 23 Aug 2020 04:04:24 +0200 Subject: [PATCH] simplify player path --- RandomVideo.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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