diff options
Diffstat (limited to 'xmake/scripts/action')
| -rw-r--r-- | xmake/scripts/action/config.lua | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/xmake/scripts/action/config.lua b/xmake/scripts/action/config.lua index e12ac898c..fb822422e 100644 --- a/xmake/scripts/action/config.lua +++ b/xmake/scripts/action/config.lua @@ -31,13 +31,16 @@ function config._save_option(file, option) -- check assert(file and option) - - -- save number - if type(option) == "number" then - file:write(option) + -- save string - elseif type(option) == "string" then + if type(option) == "string" then file:write(string.format("%q", option)) + -- save boolean + elseif type(option) == "boolean" then + file:write(tostring(option)) + -- save number + elseif type(option) == "number" then + file:write(option) -- save table elseif type(option) == "table" then |
