summaryrefslogtreecommitdiffstats
path: root/shorewall-model.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-04-09 14:03:16 +0000
committerMika Havela <mika.havela@gmail.com>2008-04-09 14:03:16 +0000
commit97c98d5a32aeffe2c19f4e59e59ecbef6d8f8329 (patch)
tree309c1a5adf726d651411e5892ce8a9b136c8c400 /shorewall-model.lua
parent9356cec7c1321adf4997cbe12d2d857a59f251e2 (diff)
downloadacf-shorewall-97c98d5a32aeffe2c19f4e59e59ecbef6d8f8329.tar.bz2
acf-shorewall-97c98d5a32aeffe2c19f4e59e59ecbef6d8f8329.tar.xz
Removed typo and cleaned up the code.
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@977 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-model.lua')
-rw-r--r--shorewall-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua
index 7dee572..4acb9da 100644
--- a/shorewall-model.lua
+++ b/shorewall-model.lua
@@ -48,7 +48,7 @@ local function read_config(file)
local filecontent = fs.read_file_as_array(path)
local output = {}
for k,v in pairs(filecontent) do
- if not string.find ( v, "^[;#].*" ) then
+ if not string.find ( v, "^[;#].*" ) and not (string.find (v, "^%s*$")) then
table.insert(output, v)
end
end