From 08a2c3d5cb286f7164f52f862f5130eb2e081ab4 Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 7 Jul 2012 03:53:15 -0800 Subject: [PATCH] [fix] path.existsSync was moved to fs.existsSync --- shelld/shelld.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shelld/shelld.js b/shelld/shelld.js index 6efb2bb..3213239 100755 --- a/shelld/shelld.js +++ b/shelld/shelld.js @@ -14,8 +14,8 @@ var init = require('init'), dir = path.resolve(home, '.icecapd-js'), file = path.resolve(dir, 'config.json'); try { - if(!path.existsSync(dir)) fs.mkdirSync(dir, 0700); - if(path.existsSync(file)) { + if(!fs.existsSync(dir)) fs.mkdirSync(dir, 0700); + if(fs.existsSync(file)) { config = JSON.parse(fs.readFileSync(file, 'utf-8')); } } catch(e) {