refactor(docs): use var for output filepath
This commit is contained in:
parent
2ff6ef01f1
commit
a0e11f75d9
|
@ -10,8 +10,9 @@ main(_) ->
|
||||||
Conf = [merge(Conf0, Cfgs1),
|
Conf = [merge(Conf0, Cfgs1),
|
||||||
io_lib:nl()
|
io_lib:nl()
|
||||||
],
|
],
|
||||||
ok = filelib:ensure_dir("apps/emqx_dashboard/priv/i18n.conf"),
|
OutputFile = "apps/emqx_dashboard/priv/i18n.conf",
|
||||||
ok = file:write_file("apps/emqx_dashboard/priv/i18n.conf", Conf).
|
ok = filelib:ensure_dir(OutputFile),
|
||||||
|
ok = file:write_file(OutputFile, Conf).
|
||||||
|
|
||||||
merge(BaseConf, Cfgs) ->
|
merge(BaseConf, Cfgs) ->
|
||||||
lists:foldl(
|
lists:foldl(
|
||||||
|
|
Loading…
Reference in New Issue