[MIRROR] Fixes build destructuring false (#3719)

* Fixes build destructuring false (#57287)

* Fixes build destructuring false

Co-authored-by: AnturK <AnturK@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-28 19:27:37 +01:00
committed by GitHub
parent b7779ea08b
commit 23a0c1553d

View File

@@ -55,7 +55,7 @@ const taskDm = new Task('dm')
const dmPath = await (async () => {
// Search in array of paths
const paths = [
...(process.env.DM_EXE && process.env.DM_EXE.split(',')),
...((process.env.DM_EXE && process.env.DM_EXE.split(',')) || []),
'C:\\Program Files\\BYOND\\bin\\dm.exe',
'C:\\Program Files (x86)\\BYOND\\bin\\dm.exe',
['reg', 'HKLM\\Software\\Dantom\\BYOND', 'installpath'],