From 8e382c6bb69a9391707e107780cacfa76ae09210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Tue, 21 Nov 2023 09:45:42 -0500 Subject: [PATCH] [common] Check for existence only --- utils/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common.sh b/utils/common.sh index ab479501..8835de9b 100644 --- a/utils/common.sh +++ b/utils/common.sh @@ -58,7 +58,7 @@ function detect_sound() { # PULSE_SERVER is required by pactl as it is executed via sudo if [ -f "/run/user/${RUN_AS_UID}/pulse/native" ]; then export PULSE_SERVER="/run/user/${RUN_AS_UID}/pulse/native" - elif [ -f "$PULSE_SOCKET_WSL2" ]; then + elif [ -e "$PULSE_SOCKET_WSL2" ]; then export PULSE_SERVER="$PULSE_SOCKET_WSL2" fi if command -v pactl &>>"$LOG_FILE"; then