From 155f868f56b5e84bbcc8ddde6cece3fc777230fd Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 16 Jun 2018 00:37:19 +0200 Subject: [PATCH] another attempt at fixing preset argument --- config.lua | 3 ++- main.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.lua b/config.lua index 8173282..659adac 100644 --- a/config.lua +++ b/config.lua @@ -1,4 +1,5 @@ -local preset = rawget(_G, 'preset') or 'ars' +local preset = rawget(_G, 'preset') +preset = preset ~= nil and preset ~= '' and preset or 'ars' local common_cfg = { -- read-only modes: diff --git a/main.lua b/main.lua index 7a1b105..c328804 100644 --- a/main.lua +++ b/main.lua @@ -1,4 +1,4 @@ -preset = arg -- must be done before requiring strict! +preset = arg or "" -- must be done before requiring strict! local globalize = require("strict") -- configuration.