Skip to content

Commit

Permalink
[common] Check for existence only
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 21, 2023
1 parent 809dc3b commit 8e382c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e382c6

Please sign in to comment.