Skip to content

Commit

Permalink
Specify encoding in registry json read
Browse files Browse the repository at this point in the history
  • Loading branch information
kasbah committed Aug 8, 2018
1 parent f1cbaa5 commit 7645765
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/get_boards
Expand Up @@ -5,9 +5,9 @@ const cp = require('child_process');
const utils = require('./utils');

if (process.argv[2] === 'production') {
registry = JSON.parse(fs.readFileSync('registry.json'));
registry = JSON.parse(fs.readFileSync('registry.json', 'utf8'));
} else {
registry = JSON.parse(fs.readFileSync('dev_registry.json'));
registry = JSON.parse(fs.readFileSync('dev_registry.json', 'utf8'));
}


Expand Down
2 changes: 1 addition & 1 deletion scripts/plug_versions
Expand Up @@ -3,7 +3,7 @@ const fs = require('fs')
const utils = require('./utils')

const repos = utils.readRepos()
const registry = JSON.parse(fs.readFileSync('registry.json'))
const registry = JSON.parse(fs.readFileSync('registry.json', 'utf8'))

for (let index = 0; index < repos.length; index++) {
var repo = repos[index]
Expand Down

0 comments on commit 7645765

Please sign in to comment.