Fix: return error code when failed to get dpdk rpm 86/14686/1
authorwylandrea <wylandrea@gmail.com>
Thu, 6 Sep 2018 06:39:49 +0000 (14:39 +0800)
committerYalei Wang <william.wangyalei@huawei.com>
Thu, 6 Sep 2018 06:50:00 +0000 (14:50 +0800)
Change-Id: I849ff131d824385f8dcd090144025ee1a0a68040
Signed-off-by: Yalei Wang <william.wangyalei@huawei.com>
scripts/build_dpdk1802.sh
scripts/build_dpdk1805.sh

index 1ed84bb..5686e82 100755 (executable)
@@ -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"
index 805153b..84f3e48 100755 (executable)
@@ -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"