Merge branch 'fix-inplace-overwriting' into add-forceformat-option
* fix-inplace-overwriting: Fixing variable name when overwriting input file.
This commit is contained in:
@@ -135,7 +135,7 @@ function main (args) {
|
||||
var json = path.normalize(options.file);
|
||||
source = parse(fs.readFileSync(json, "utf8"));
|
||||
if (options.inplace) {
|
||||
fs.writeSync(fs.openSync(path,'w+'), source, 0, "utf8");
|
||||
fs.writeSync(fs.openSync(json,'w+'), source, 0, "utf8");
|
||||
} else {
|
||||
if (! options.quiet) { console.log(source)};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user