Browse Source

xargs --no-run-if-empty is not supported on OSX

Kevin van Zonneveld 9 years ago
parent
commit
967c5995a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/test-acceptance

+ 1 - 1
bin/test-acceptance

@@ -11,7 +11,7 @@ __base="$(basename ${__file} .sh)"
 
 function killProcessListeningOnPort () {
   local port="${1}"
-  lsof -n -i4TCP:${port} | awk '/LISTEN/ {print $2}' |xargs --no-run-if-empty kill -9
+  lsof -n -i4TCP:${port} | awk '/LISTEN/ {print $2}' |xargs kill -9
 }
 
 function waitForPortOpen () {