diff --git a/scripts/copyDirectoryToFoundrySystem.cjs b/scripts/copyDirectoryToFoundrySystem.cjs index cb2d1ff5..fcebc287 100644 --- a/scripts/copyDirectoryToFoundrySystem.cjs +++ b/scripts/copyDirectoryToFoundrySystem.cjs @@ -10,7 +10,7 @@ let destPath; try { console.log(chalk.yellow('Trying to use fvtt to get dataPath...')); dataPath = execSync('fvtt configure get dataPath', { encoding: 'utf8' }).trim(); - if (!dataPath) { + if (!dataPath || dataPath === 'undefined') { msg = 'Error: fvtt not configured!'; console.log(chalk.yellow(msg)); throw new Error(msg);