mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
Fix check for FOUNDRY_DATA_PATH (#1989)
This commit is contained in:
parent
9a220b4e16
commit
a96eb6ab62
1 changed files with 2 additions and 1 deletions
|
|
@ -22,8 +22,9 @@ export function readEnvFile() {
|
|||
console.error('Configured FOUNDRY_MAIN_PATH is invalid, it must end with main.js');
|
||||
process.exit();
|
||||
}
|
||||
if (/Data(\/|\\)?$/.test(dataPath) || !fs.existsSync(path.join(dataPath, 'Data'))) {
|
||||
if (path.basename(dataPath) === 'Data' || !fs.existsSync(path.join(dataPath, 'Data'))) {
|
||||
console.error('Configured FOUNDRY_DATA_PATH is incorrect. This must be a folder that contains "Data"');
|
||||
process.exit();
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue