Tunneldigger Watchdog: replace operator

This commit is contained in:
Matthias P. Walther 2019-06-02 20:00:56 +02:00
parent 03652f5fa2
commit 796d09895a
No known key found for this signature in database
GPG Key ID: 16BA5AB30324A4AE

View File

@ -17,7 +17,7 @@ end
function check_for_mesh_vpn_neighbours()
local handle = io.popen("batctl o", 'r')
if handle~=nil then
if not handle then
for line in handle:lines() do
if line:find('mesh%-vpn') then
handle:close()