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=d015015c9275c706d47788cf308aee2a0477231f;hp=b7e926110601ab4d67f4f4b4ffaf3c42b228a345;hb=147ce6e1ab9e6f557172d05aa0c09d44a34b0fdc;hpb=5460988e99fddda2dd2d5a58e4b8a92851d3c427 diff --git a/resources/tools/t-rex/t-rex-installer.sh b/resources/tools/t-rex/t-rex-installer.sh index b7e9261106..d015015c92 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="2.02" +TREX_VERSION="2.07" 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