diff --git a/src/index.ts b/src/index.ts index f44e48e..c60f5ce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -652,10 +652,9 @@ export class Project { if (err.code === 'EEXIST') { debugger; } - if (err.code !== 'EXDEV') { - throw err; + if (err.code === 'EXDEV') { + this.usingHardLinks = false; } - this.usingHardLinks = false; } } fs.copyFileSync(source, destination, fs.constants.COPYFILE_FICLONE | fs.constants.COPYFILE_EXCL);