From 50f41f3711e4ae61a4479208dbdce1fc75a0b12e Mon Sep 17 00:00:00 2001 From: wylandrea Date: Thu, 6 Sep 2018 14:39:49 +0800 Subject: Fix: return error code when failed to get dpdk rpm Change-Id: I849ff131d824385f8dcd090144025ee1a0a68040 Signed-off-by: Yalei Wang --- scripts/build_dpdk1802.sh | 6 +++--- scripts/build_dpdk1805.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts') 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" -- cgit 1.2.3-korg