From 9e4ec6c457b9737826335a10e3269a6801ee65b7 Mon Sep 17 00:00:00 2001 From: mmaster Date: Sun, 23 Aug 2020 04:10:55 +0200 Subject: [PATCH] add quotes for variables --- RandomVideo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RandomVideo.sh b/RandomVideo.sh index 2047c58..d805778 100755 --- a/RandomVideo.sh +++ b/RandomVideo.sh @@ -18,9 +18,9 @@ if [ "buzzer" != "$1" -a "cron" != "$1" ]; then exit 1 fi -if $(command -v pgrep) "$player > /dev/null; then +if $(command -v pgrep) "$player" > /dev/null; then if [ "$1" = "buzzer" ]; then - $(command -v pkill) $player + $(command -v pkill) "$player" elif [ "$1" = "cron" ]; then exit 1