Skip to content

Commit

Permalink
Remove unused options param from cmd util
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Nov 7, 2017
1 parent efd2986 commit 436649e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { spawn } from 'child_process'
const MONTH_NAMES = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']

// Simple util for calling a child process
export function cmd (string, options = {}) {
export function cmd (string) {
const [ cmd, ...args ] = string.split(' ')
return new Promise((resolve, reject) => {
const child = spawn(cmd, args, options)
const child = spawn(cmd, args)
let data = ''

child.stdout.on('data', buffer => { data += buffer.toString() })
Expand Down

0 comments on commit 436649e

Please sign in to comment.