Skip to content

Commit

Permalink
Fix Darklua config paths not working on Windows
Browse files Browse the repository at this point in the history
AH YES WINDOWS! I LOVE WINDOWS
  • Loading branch information
regginator committed Oct 2, 2023
1 parent f6d292f commit 71e6dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lune/wax.luau
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,13 @@ elseif Subcommand == "bundle" then
local TempDarkluaConfigWasAdded = false

if DarkluaConfigPath then
table.insert(ExtraDarkluaProcessArgs, `-c {EncodeShellData(DarkluaConfigPath)}`)
table.insert(ExtraDarkluaProcessArgs, `-c={EncodeShellData(DarkluaConfigPath)}`)
elseif not fs.isFile(".darklua.json") and not fs.isFile(".darklua.json5") then
RunIfVerbose(Log.Info, `No default Darklua config file found in CWD; creating our default config at "{TempDarkluaConfigPath}"`)
WriteFile(TempDarkluaConfigPath, DefaultDarkluaConfig)
TempDarkluaConfigWasAdded = true

table.insert(ExtraDarkluaProcessArgs, `-c {EncodeShellData(TempDarkluaConfigPath)}`)
table.insert(ExtraDarkluaProcessArgs, `-c={EncodeShellData(TempDarkluaConfigPath)}`)
end

Run("darklua", {
Expand Down

0 comments on commit 71e6dfd

Please sign in to comment.