From 7af746e8b80ba883d3cfcd234fea4b967791e764 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 3 Aug 2018 12:54:37 -0400 Subject: [PATCH] Fix bluetoothctl parser --- bin/khatus_parse_bluetoothctl_show | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/khatus_parse_bluetoothctl_show b/bin/khatus_parse_bluetoothctl_show index 7de42cf..ed1e228 100755 --- a/bin/khatus_parse_bluetoothctl_show +++ b/bin/khatus_parse_bluetoothctl_show @@ -8,7 +8,7 @@ /^\t[A-Z][A-Za-z]+:/ { key = $1 sub(":$", "", key) - sub("^" $1, "") + sub("^\t" $1 " *", "") val = $0 data[controller, key] = val } -- 2.20.1