From a0b96fc5c9a046f6f3d44405e7d801eadb818dcf Mon Sep 17 00:00:00 2001 From: Artur Girenko Date: Wed, 21 Jun 2017 21:12:45 +0200 Subject: [PATCH] pipe output by default when executing os command fixes #120 --- re-natal.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re-natal.coffee b/re-natal.coffee index 1a88b52..b3f5783 100644 --- a/re-natal.coffee +++ b/re-natal.coffee @@ -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