X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fdownload_install_vpp_pkgs.sh;fp=resources%2Ftools%2Fdownload_install_vpp_pkgs.sh;h=025be877207afce1a06de0dc2a667f69db996d66;hp=0d95e7592210d2e22e7c1ffe4a07fa706e9003f0;hb=77873c7c4c3793b3a9a5fa0e5daa6884dabb2e82;hpb=bf584751869e2763468fc1c8a1865b5a5ae7c10f diff --git a/resources/tools/download_install_vpp_pkgs.sh b/resources/tools/download_install_vpp_pkgs.sh index 0d95e75922..025be87720 100755 --- a/resources/tools/download_install_vpp_pkgs.sh +++ b/resources/tools/download_install_vpp_pkgs.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (c) 2016 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,7 +13,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -x +set -ex + +trap 'rm -f *.deb.md5; exit' EXIT +trap 'rm -f *.deb.md5;rm -f *.deb; exit' ERR URL="https://nexus.fd.io/service/local/artifact/maven/content" VER="RELEASE" @@ -36,5 +39,9 @@ for MD5FILE in *.md5; do md5sum -c ${MD5FILE} || exit done -echo sudo dpkg -i *.deb - +if [ "$1" != "--skip-install" ]; then + echo Installing VPP + sudo dpkg -i *.deb +else + echo VPP Installation skipped +fi