diff options
author | yalei wang <wylandrea@gmail.com> | 2018-09-10 03:00:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2018-09-10 03:00:52 +0000 |
commit | b26713f201a01f285f7cd611f969b60fc2578eb7 (patch) | |
tree | 2cb8d6c73095d5055d6fd75ffaffc41b1b06d3a5 /scripts | |
parent | 6fecab16fe88454e4e3aa1f6cb6df96f92bfd513 (diff) | |
parent | 50f41f3711e4ae61a4479208dbdce1fc75a0b12e (diff) |
Merge "Fix: return error code when failed to get dpdk rpm"
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build_dpdk1802.sh | 6 | ||||
-rwxr-xr-x | scripts/build_dpdk1805.sh | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/build_dpdk1802.sh b/scripts/build_dpdk1802.sh index 1ed84bb..5686e82 100755 --- a/scripts/build_dpdk1802.sh +++ b/scripts/build_dpdk1802.sh @@ -70,10 +70,10 @@ sudo yum install -y libpcap-devel python-sphinx inkscape echo "generate the rpm package" rpmbuild -ba dpdk.spec --define "_sourcedir ${PWD}" if [ $? -eq 0 ]; then - echo "rpm build success" + echo "dpdk rpm build success" else - echo "rpm build error" - exit + echo "dpdk rpm build error" + exit 1 fi echo "install the rpm" diff --git a/scripts/build_dpdk1805.sh b/scripts/build_dpdk1805.sh index 805153b..84f3e48 100755 --- a/scripts/build_dpdk1805.sh +++ b/scripts/build_dpdk1805.sh @@ -65,10 +65,10 @@ sudo yum install -y libpcap-devel python-sphinx inkscape echo "generate the rpm package" rpmbuild -ba dpdk.spec --define "_sourcedir ${PWD}" if [ $? -eq 0 ]; then - echo "rpm build success" + echo "dpdk rpm build success" else - echo "rpm build error" - exit + echo "dpdk rpm build error" + exit 1 fi echo "install the rpm" |