Skip to content

Commit

Permalink
Merge pull request #80 from retrohacker/greenkeeper/standard-12.0.1
Browse files Browse the repository at this point in the history
chore(package): update standard to version 12.0.1
  • Loading branch information
William Blankenship authored Nov 22, 2018
2 parents 8d92c71 + 0bcd2bf commit 2d96f47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function getOs (cb) {
// Linux is a special case.
if (osName === 'linux') return getLinuxDistro(cb)
// Else, node's builtin is acceptable.
return cb(null, {'os': osName})
return cb(null, { 'os': osName })
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"cli-color": "1.3.0",
"execSync": "1.0.2",
"standard": "^10.0.2",
"standard": "^12.0.1",
"tape": "4.8.0"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions tests/runTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ distros.forEach(function (v1) {
// Build the docker image using the dockerfile
process.stdout.write('Building version ' + v2 + ' of ' + capitalize(v1) + '... ')
try {
var dockerResult = execSync('docker build -t "getos:' + v1 + v2 + '" .', {stdio: []})
var dockerResult = execSync('docker build -t "getos:' + v1 + v2 + '" .', { stdio: [] })
} catch (e) {
dockerResult = dockerResult || {}
dockerResult.code = e
Expand All @@ -40,7 +40,7 @@ distros.forEach(function (v1) {
process.stdout.write('Running container... ')
// Show output from distribution
try {
var nodeResult = execSync('docker run -d getos:' + v1 + v2, {stdio: []})
var nodeResult = execSync('docker run -d getos:' + v1 + v2, { stdio: [] })
} catch (e) {
nodeResult = nodeResult || {}
nodeResult.code = e
Expand All @@ -50,7 +50,7 @@ distros.forEach(function (v1) {
process.stdout.write('[' + color.red('FAILED!') + ']\n')
} else {
try {
var dockerLog = execSync('sleep 2s && docker logs ' + (nodeResult.stdout || nodeResult.toString()), {stdio: []})
var dockerLog = execSync('sleep 2s && docker logs ' + (nodeResult.stdout || nodeResult.toString()), { stdio: [] })
} catch (e) {
dockerLog = dockerLog || {}
dockerLog.code = e
Expand Down

0 comments on commit 2d96f47

Please sign in to comment.