mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
meteorNpm.dependenciesArePortable skip bad symlink
stat fails if a symlink points to something nonexistent. since we're literally looking for stuff physically under a directory, we don't need to chase symlinks.
This commit is contained in:
@@ -153,7 +153,7 @@ meteorNpm.dependenciesArePortable = function (packageNpmDir) {
|
||||
if (itemName.match(/\.node$/))
|
||||
return true;
|
||||
var item = path.join(dir, itemName);
|
||||
if (fs.statSync(item).isDirectory())
|
||||
if (fs.lstatSync(item).isDirectory())
|
||||
return search(item);
|
||||
}) || false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user