Skip to content

Commit 4a7e4b4

Browse files
committed
fix #236; thanks @oCanna :)
1 parent d043ca3 commit 4a7e4b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/manage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function start_bot_mpd() {
5454
}
5555
function stop_bot_mpd() {
5656
local botid=${1}
57-
local mpdpid=$(ps aux | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f2)
57+
local mpdpid=$(ps ax | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f1)
5858
kill ${mpdpid} > /dev/null 2>&1
5959
}
6060

0 commit comments

Comments
 (0)