X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus_parse_bluetoothctl_show;h=ed1e228d107f8ad9b01ee9e445ba9ee5c17d3295;hb=654ea6e2ddf5986f1975cd860575248c114102fe;hp=08a8708a50e04da4744043092b1f47e2f5963f76;hpb=fd22859bbb95b488a17e439e9e64de2eef00a04d;p=khatus.git diff --git a/bin/khatus_parse_bluetoothctl_show b/bin/khatus_parse_bluetoothctl_show index 08a8708..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 } @@ -26,7 +26,7 @@ END { show = "ERROR" } } else { - show = "off" # TODO: Perhaps use differentiated marker? + show = "n/a" } print(show) }