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'],