From c5a126bed952818f459910faf8d5f0ab02e50187 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Tue, 3 Nov 2015 11:31:40 -0500 Subject: [PATCH] don't resolve file path --- bin/jsnice | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/jsnice b/bin/jsnice index e2d164e..be1e98a 100755 --- a/bin/jsnice +++ b/bin/jsnice @@ -23,9 +23,9 @@ var args = docopt.docopt(doc, { help: true, version: 'jsnice ' + require('../package.json').version, }); -var cwd = process.cwd(); -filePath = path.join(cwd, args['']); +// Resolve file path +var filePath = args['']; var js = fs.readFileSync(filePath); var options = { pretty: !args['--no-pretty'],