0

pause-all script syntax error preventing bluetooth playback

journalctl -f output:

Jan 20 17:00:51 hifiberrylivingroom bluealsa-aplay-start[17422]: /opt/hifiberry/bin/pause-all: line 165: syntax error near unexpected token `('

Line 159 in /opt/hifiberry/bin/pause-all:

echo ""pause-all $PLAYER ($PPID): $DATE1 pause_process done, but playback still active" | systemd-cat

Removing parentheses around $PPID made it work:

echo ""pause-all $PLAYER $PPID: $DATE1 pause_process done, but playback still active" | systemd-cat

I'm not sure if this solution breaks some other usage of $PPID, but this looks like standard bash, so I think the parentheses aren't necessary, or should be $(PPID), but a PID should never be discontiguous...

1 comment

Please sign in to leave a comment.