From: Siraaj Khandkar Date: Fri, 3 Aug 2018 16:54:37 +0000 (-0400) Subject: Fix bluetoothctl parser X-Git-Url: https://git.xandkar.net/?p=khatus.git;a=commitdiff_plain;h=7af746e8b80ba883d3cfcd234fea4b967791e764 Fix bluetoothctl parser --- 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 }