Skip to content

Commit

Permalink
use --quiet flag for grep to suppress output
Browse files Browse the repository at this point in the history
Using the --quiet flag is more succinct and idiomatic for suppressing grep's output.
  • Loading branch information
mzagrabe authored Jul 12, 2017
1 parent d4fa604 commit 69a818e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toggle-pulseaudio-port
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if /usr/bin/lsusb | grep 17ef:1010 > /dev/null ; then
if /usr/bin/lsusb | grep --quiet 17ef:1010; then
pacmd set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo analog-output
else
pacmd set-sink-port alsa_output.pci-0000_00_1b.0.analog-stereo analog-output-speaker
Expand Down

0 comments on commit 69a818e

Please sign in to comment.