0

I was having issues with pulseaudio and had to every time type in 'pulseaudio -D' in terminal each time I booted up. However, this was quite frustrating and so I was looking forward to make pulseaudio to startup each time at bootup by editing .bashrc

I added these lines at the end of the .bashrc file :

until [[ `ps aux | grep "pulseaudio -D" | grep -v grep | wc -l` -eq 1 ]]
do
    pulseaudio -D >/dev/null 2>&1
    if [[ `ps aux | grep "pulseaudio -D" | grep -v grep | wc -l` -gt 1 ]]
    then
        kill -9 `pidof pulseaudio`
        pulseaudio -D
    fi

https://pastebin.com/QC6LV50d

But since after that I have been getting the error of 'unexpected end of file' as enclosed in the Screenshot.

How can I solve it?

dessert
  • 40,956

1 Answers1

4

Your do loop lacks ending with done. Compare

#!/bin/bash
for i in *; do
    echo "item: $i"
done
dessert
  • 40,956
gonczor
  • 181