mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-03 05:51:07 +08:00
fix(build): fix lstatSync throwing
This commit is contained in:
parent
6a55717157
commit
c416731d35
1 changed files with 4 additions and 3 deletions
|
@ -18,6 +18,7 @@ module.exports = (grunt) ->
|
||||||
from = path.join(rootDir, 'packages', plugin)
|
from = path.join(rootDir, 'packages', plugin)
|
||||||
to = path.join(path.resolve('internal_packages'), plugin)
|
to = path.join(path.resolve('internal_packages'), plugin)
|
||||||
|
|
||||||
|
try
|
||||||
if fs.lstatSync(to)
|
if fs.lstatSync(to)
|
||||||
grunt.log.writeln "Removing old symlink at #{to}"
|
grunt.log.writeln "Removing old symlink at #{to}"
|
||||||
fs.unlinkSync(to)
|
fs.unlinkSync(to)
|
||||||
|
|
Loading…
Reference in a new issue