From 0cb54e24863b9d7b0d792181df521991fc6727b8 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 26 Sep 2012 20:20:47 +0530 Subject: [PATCH] Exit code needs to be captured post nc output. Don't exec as cmd --- test/setup-test-data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/setup-test-data.sh b/test/setup-test-data.sh index 732d5937efd..a0e78de339f 100755 --- a/test/setup-test-data.sh +++ b/test/setup-test-data.sh @@ -62,7 +62,7 @@ if [[ $ostypeid == "" ]]; then exit 2 fi -$(nc -z $MGMT_SVR 8096) +nc -z $MGMT_SVR 8096 if [[ $? -ne 0 ]]; then echo "$MGMT_SVR doesn't have port 8096 open" exit 2