mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 02:33:50 +00:00
Fixed: Must check in Node if path exists when doing 'fs.lstatSync' as it will throw if not.
This commit is contained in:
1 parent
973fa1b978
commit
2f00d93b22
1 file changed
+1
-1
@@ -853,7 +853,7 @@ var /* FILE = require("file"), */
|
||||
{
|
||||
themePath = PATH.join(PATH.normalize(themeDir), blendName);
|
||||
|
||||
if (!fs.lstatSync(themePath).isDirectory())
|
||||
if (!fs.existsSync(themePath) || !fs.lstatSync(themePath).isDirectory())
|
||||
themePath = themeDir = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user