From: 2009 Date: Tue, 24 Jan 2017 09:55:27 +0000 (+1000) Subject: Fix bug where net widget would not get the device name X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/958cf60e6fbb5958d4d4505b044370a6028d683a Fix bug where net widget would not get the device name This happens because my output from ```ip link show``` doesn't have anything additional betweeen MULTICAST and UP. ``` 2: enp2s0: ``` --- diff --git a/widgets/net.lua b/widgets/net.lua index 983ec7a..2457748 100644 --- a/widgets/net.lua +++ b/widgets/net.lua @@ -35,7 +35,7 @@ local function worker(args) function net.get_device() helpers.async(string.format("ip link show", device_cmd), function(ws) - ws = ws:match("(%w+): ") + ws = ws:match("(%w+): ") net.iface = ws and { ws } or {} end) end