X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ft-rex%2Ft-rex-installer.sh;h=13b990072e2734f0a089bfd869d4ae62af21605b;hp=781b73c3c23386852a3e52b0352a0e2488afb142;hb=b7b9a6f73347fba29060f3c2a2abfc4ea411de68;hpb=bf06c80efd215b28b2e23cb9db7c464e9e29c321 diff --git a/resources/tools/t-rex/t-rex-installer.sh b/resources/tools/t-rex/t-rex-installer.sh index 781b73c3c2..13b990072e 100755 --- a/resources/tools/t-rex/t-rex-installer.sh +++ b/resources/tools/t-rex/t-rex-installer.sh @@ -1,6 +1,6 @@ #!/bin/sh -TREX_VERSION="1.91" +TREX_VERSION="2.00" TREX_DOWNLOAD_REPO="https://github.com/cisco-system-traffic-generator/trex-core/archive/" TREX_DOWNLOAD_PACKAGE="v${TREX_VERSION}.zip" @@ -24,7 +24,7 @@ cleanup () { trap cleanup EXIT -test -d ${TREX_INSTALL_DIR} && echo "T-REX aleready installed: ${TREX_INSTALL_DIR}" && exit 1 +test -d ${TREX_INSTALL_DIR} && echo "T-REX aleready installed: ${TREX_INSTALL_DIR}" && exit 0 wget -P ${WORKING_DIR} ${TREX_PACKAGE_URL} test $? -eq 0 || exit 1