normalize indentation to spaces
This commit is contained in:
parent
a6218a0d96
commit
2b07a5ee42
@ -181,15 +181,11 @@ EOF
|
||||
# Check if SSH port forwarding is running
|
||||
check_pa_ssh() {
|
||||
for pid in $(pidof ssh) ; do
|
||||
if grep -Fq "$USER"-pulseaudio /proc/"$pid"/cmdline ; then
|
||||
grep -Fq -e -L /proc/"$pid"/cmdline || {
|
||||
echo "ERROR: No SSH port forwarding to remote server is established." >&2
|
||||
return 1 ;
|
||||
}
|
||||
if grep -Fq "$USER"-pulseaudio /proc/"$pid"/cmdline && grep -Fq -e -L /proc/"$pid"/cmdline ; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
echo "ERROR: No SSH is established." >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user