diff --git a/RandomVideo.sh b/RandomVideo.sh index d787cd4..9b9964b 100755 --- a/RandomVideo.sh +++ b/RandomVideo.sh @@ -29,7 +29,7 @@ if [ "buzzer" != "$1" ] && [ "cron" != "$1" ]; then exit 1 fi -if ! $(command -v pgrep) "$pgrepplayer" > /dev/null; then +if $(command -v pgrep) "$pgrepplayer" > /dev/null; then if [ "$1" = "buzzer" ]; then $(command -v pkill) "$pgrepplayer"