diff --git a/buzzer.sh b/buzzer.sh index 6fc64b8..c992090 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -54,7 +54,7 @@ while true; do swupstat="$($cmdgpio read $swupgpio)" - while $(command -v pgrep) "$pgrepplayer" > /dev/null; do + while [ ! -z "$($(command -v pgrep) "$pgrepplayer")" ]; do $(command -v pkill) "$pgrepplayer" done