We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9a9e21 commit 5fc1bb9Copy full SHA for 5fc1bb9
1 file changed
scripts/manage.sh
@@ -54,7 +54,9 @@ function start_bot_mpd() {
54
}
55
function stop_bot_mpd() {
56
local botid=${1}
57
- local mpdpid=$(ps ax | grep -i mpd | grep -v grep | grep -E "mpd.*mpd${botid}" | cut -d" " -f1)
+ #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
+
60
kill ${mpdpid} > /dev/null 2>&1
61
62
0 commit comments