Explorar o código

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

Kevin van Zonneveld %!s(int64=9) %!d(string=hai) anos
pai
achega
967c5995a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/test-acceptance

+ 1 - 1
bin/test-acceptance

@@ -11,7 +11,7 @@ __base="$(basename ${__file} .sh)"
 
 
 function killProcessListeningOnPort () {
 function killProcessListeningOnPort () {
   local port="${1}"
   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 () {
 function waitForPortOpen () {