Exit code needs to be captured post nc output. Don't exec as cmd

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/5190bfc9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/5190bfc9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/5190bfc9

Branch: refs/heads/4.0
Commit: 5190bfc97c56f7711cebf19ff2b9f0772742a1fd
Parents: 54fb0c3
Author: Prasanna Santhanam <[email protected]>
Authored: Wed Sep 26 20:20:47 2012 +0530
Committer: Edison Su <[email protected]>
Committed: Wed Sep 26 21:34:51 2012 -0700

----------------------------------------------------------------------
 test/setup-test-data.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/5190bfc9/test/setup-test-data.sh
----------------------------------------------------------------------
diff --git a/test/setup-test-data.sh b/test/setup-test-data.sh
index 732d593..a0e78de 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

Reply via email to