Tighten bluetoothctl output matching to exclude logs
[khome.git] / home / lib / login_functions.sh
index 6b0c1bc..243f15f 100644 (file)
@@ -346,7 +346,7 @@ _bt_devs_infos() {
     # which bluetoothctl outputs
     awk '/^Device +/ {print $2}' \
     | xargs -I% sh -c 'echo info % | bluetoothctl' \
-    | awk '/^Device |^\t/'
+    | awk '/^Device |^\t[A-Z][A-Za-z0-9]+: /'
 }
 
 bt_devs_paired() {
This page took 0.024181 seconds and 4 git commands to generate.