From 5c72ec43123c810530966d285fa9345ccc48e2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Mon, 20 Nov 2023 21:30:20 -0500 Subject: [PATCH] [common] Return N/A if pactl not found --- utils/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/common.sh b/utils/common.sh index c19de2ea..a0e54b1f 100644 --- a/utils/common.sh +++ b/utils/common.sh @@ -72,7 +72,7 @@ function detect_sound() { SOUND_SERVER="$(pactl info | awk -F":" '$1 ~ /Server Name/ { print $2 }' | sed 's/^ *//')" export SOUND_SERVER else - SOUND_SERVER="N/A" + export SOUND_SERVER="N/A" fi # Looking for strictly for pipepire process elif [ "$(pgrep -a -f "pipewire$" | awk -F"/" '{ print $NF }' 2>>"$LOG_FILE")" == "pipewire" ]; then