Skip to content

Commit 5fc1bb9

Browse files
committed
better fix for #236
1 parent a9a9e21 commit 5fc1bb9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/manage.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ function start_bot_mpd() {
5454
}
5555
function stop_bot_mpd() {
5656
local botid=${1}
57-
local mpdpid=$(ps ax | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f1)
57+
#local mpdpid=$(ps ax | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f1)
58+
local mpdpid=$(ps ax | grep -i mpd | grep -v grep | sed 's/^\ *//g' | grep -E "mpd.*mpd1" | cut -d" " -f1)
59+
5860
kill ${mpdpid} > /dev/null 2>&1
5961
}
6062

0 commit comments

Comments
 (0)