Skip to content

Commit

Permalink
Bitcore-build npm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
micahriggan committed Aug 21, 2019
1 parent 61ddc54 commit d7dd84e
Show file tree
Hide file tree
Showing 3 changed files with 683 additions and 129 deletions.
3 changes: 2 additions & 1 deletion packages/bitcore-build/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports = function(config) {

function hasDockerCGroup() {
try {
return fs.readFileSync('/proc/self/cgroup', 'utf8').indexOf('docker') !== -1;
const file = fs.readFileSync('/proc/self/cgroup', 'utf8');
return file.indexOf('docker') !== -1;
} catch (err) {
return false;
}
Expand Down
Loading

0 comments on commit d7dd84e

Please sign in to comment.