summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/acov10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/acov b/scripts/acov
index bf2cad4df..a884ca238 100755
--- a/scripts/acov
+++ b/scripts/acov
@@ -37,8 +37,14 @@ if [ "$1" = "--clean" ]; then
fi
if [ "$1" = "--prep" ]; then
- find $ANDROID_HOST_OUT -name '*.gcda' -delete
- find $ANDROID_PRODUCT_OUT -name '*.gcda' -delete
+ if [ -d "$ANDROID_HOST_OUT" ]; then
+ find $ANDROID_HOST_OUT -name '*.gcda' -delete
+ fi
+
+ if [ -d "$ANDROID_PRODUCT_OUT" ]; then
+ find $ANDROID_PRODUCT_OUT -name '*.gcda' -delete
+ fi
+
exit 0
fi