do it this way

This commit is contained in:
2025-12-29 23:21:32 -08:00
parent 8ac2a5dfe1
commit 58b5172910

View File

@ -1,7 +1,7 @@
#!/bin/sh
# quit if another instance is already running
if [ -n $(pidof mpc idleloop) ];then
if [ !$(pidof mpc idleloop > /dev/null) ]; then
echo "mpd-monitor already running"
exit
fi