Fix deployments dir check in the script to publish records
This commit is contained in:
parent
aff309eaad
commit
08d6351d25
@ -91,7 +91,7 @@ async function publishRecordsFromDir (recordsDir: string): Promise<void> {
|
||||
|
||||
// Check if deployment record files exist
|
||||
const deploymentRecordsDir = path.resolve(recordsDir, 'deployments');
|
||||
if (!fs.statSync(deploymentRecordsDir).isDirectory()) {
|
||||
if (!fs.existsSync(deploymentRecordsDir) || !fs.statSync(deploymentRecordsDir).isDirectory()) {
|
||||
return;
|
||||
}
|
||||
console.log('--------------------------------------');
|
||||
|
Loading…
Reference in New Issue
Block a user