From 2e1b5532e14dcbcb4cecea973c01df21dc3b2f9d Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 22 Sep 2015 16:42:53 -0700 Subject: [PATCH] build: handle builds with no scan-build output Change-Id: Ic96422be95c9e4f84b34d05329ca79b4af989342 Signed-off-by: Daniel Verkamp --- autobuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autobuild.sh b/autobuild.sh index 3ab8d0a52..76898e7a3 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -21,7 +21,7 @@ time $scanbuild make $MAKEFLAGS DPDK_DIR=$DPDK_DIR if [ -d $out/scan-build-tmp ]; then scanoutput=$(ls -1 $out/scan-build-tmp/) mv $out/scan-build-tmp/$scanoutput $out/scan-build - rmdir $out/scan-build-tmp + rm -rf $out/scan-build-tmp chmod -R a+rX $out/scan-build fi