Skip to content

Commit

Permalink
[script] Fix logic multiple audio devices warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeyexp committed Sep 28, 2018
1 parent 20934f2 commit d3279ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ else
echo "[${RED}${BOLD} WARN ${RESET}] Add an audio output device!" > /dev/tty3
echo "[${RED}${BOLD} WARN ${RESET}] *******************************************************" > /dev/tty3
else
if [ "$pa_device" != "" ]; then
if [ "$pa_device" == "" ]; then
echo "${RESET}" > /dev/tty3
echo "[${RED}${BOLD} WARN ${RESET}] *******************************************************" > /dev/tty3
echo "[${RED}${BOLD} WARN ${RESET}] Pulseaudio has detected multiple outputs!" > /dev/tty3
Expand Down Expand Up @@ -126,7 +126,7 @@ else
echo "[${RED}${BOLD} WARN ${RESET}] Add an audio input device!" > /dev/tty3
echo "[${RED}${BOLD} WARN ${RESET}] *******************************************************" > /dev/tty3
else
if [ "$pa_inputdevice" != "" ]; then
if [ "$pa_inputdevice" == "" ]; then
echo "${RESET}" > /dev/tty3
echo "[${RED}${BOLD} WARN ${RESET}] *******************************************************" > /dev/tty3
echo "[${RED}${BOLD} WARN ${RESET}] Pulseaudio has detected multiple inputs!" > /dev/tty3
Expand Down

0 comments on commit d3279ba

Please sign in to comment.