mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-14 14:45:18 +00:00
pipe output by default when executing os command fixes #120
This commit is contained in:
parent
7bfbcf832a
commit
a0b96fc5c9
@ -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'
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user