diff options
author | 2018-09-06 14:39:49 +0800 | |
---|---|---|
committer | 2018-09-06 14:50:00 +0800 | |
commit | 50f41f3711e4ae61a4479208dbdce1fc75a0b12e (patch) | |
tree | d1198075dc96e76a410acff8abd0326cc9a53553 /scripts | |
parent | 9f683fadb09aaea5a07f4673f8bbc3a7ddd38afc (diff) |
Fix: return error code when failed to get dpdk rpm
Change-Id: I849ff131d824385f8dcd090144025ee1a0a68040
Signed-off-by: Yalei Wang <william.wangyalei@huawei.com>
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" |