Skip to content

Commit

Permalink
pipe output by default when executing os command fixes #120
Browse files Browse the repository at this point in the history
  • Loading branch information
drapanjanas committed Jun 21, 2017
1 parent 7bfbcf8 commit a0b96fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions re-natal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ exec = (cmd, keepOutput) ->
if keepOutput
child.execSync cmd, stdio: 'inherit'
else
child.execSync cmd, stdio: 'ignore'
child.execSync cmd, stdio: ['pipe', 'pipe', 'ignore']

ensureExecutableAvailable = (executable) ->
if os.platform() == 'win32'
Expand Down Expand Up @@ -298,7 +298,7 @@ resolveIosDevHost = (deviceType) ->
log "Using 'localhost' for iOS simulator"
'localhost'
else if deviceType == 'real'
en0Ip = exec('ipconfig getifaddr en0', true).toString().trim()
en0Ip = exec('ipconfig getifaddr en0').toString().trim()
log "Using IP of interface en0:'#{en0Ip}' for real iOS device"
en0Ip
else
Expand Down

0 comments on commit a0b96fc

Please sign in to comment.