Skip to content

Commit

Permalink
[common] Return N/A if pactl not found
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 21, 2023
1 parent 78bb97e commit 5c72ec4
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 @@ -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
Expand Down

0 comments on commit 5c72ec4

Please sign in to comment.