normalize indentation to spaces

This commit is contained in:
Tilman Kranz 2025-03-29 18:52:25 +01:00
parent a6218a0d96
commit 2b07a5ee42

View File

@ -181,15 +181,11 @@ EOF
# Check if SSH port forwarding is running # Check if SSH port forwarding is running
check_pa_ssh() { check_pa_ssh() {
for pid in $(pidof ssh) ; do for pid in $(pidof ssh) ; do
if grep -Fq "$USER"-pulseaudio /proc/"$pid"/cmdline ; then if grep -Fq "$USER"-pulseaudio /proc/"$pid"/cmdline && grep -Fq -e -L /proc/"$pid"/cmdline ; then
grep -Fq -e -L /proc/"$pid"/cmdline || { return 0
echo "ERROR: No SSH port forwarding to remote server is established." >&2
return 1 ;
}
fi fi
done done
echo "ERROR: No SSH is established." >&2
return 1 return 1
} }