aboutsummaryrefslogtreecommitdiffstats
path: root/awall-cli
diff options
context:
space:
mode:
Diffstat (limited to 'awall-cli')
-rwxr-xr-xawall-cli4
1 files changed, 1 insertions, 3 deletions
diff --git a/awall-cli b/awall-cli
index e733f2e..a019779 100755
--- a/awall-cli
+++ b/awall-cli
@@ -134,9 +134,7 @@ end
if stringy.endswith(arg[0], '/awall-cli') then
basedir = arg[0]:sub(1, -11)
- if not pol_paths.mandatory then
- pol_paths.mandatory = {'/etc/awall'}
- end
+ util.setdefault(pol_paths, 'mandatory', {'/etc/awall'})
table.insert(pol_paths.mandatory, basedir..'/json')
end