From 755c2a3bff4b76d8b8a4209232b383fdad71acde Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Thu, 3 Jun 2021 20:39:10 -0700 Subject: [PATCH] [update_clang-tools.sh] Ignore failures when removing .fetch* Sometimes these files are absent but this causes the script to fail since it's run with `-e`. Ignore failures when deleting .fetch*. Test: run script Change-Id: Ida750b504064f2da53d0d9444838a49e476530d4 --- vndk/tools/header-checker/android/update_clang-tools.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vndk/tools/header-checker/android/update_clang-tools.sh b/vndk/tools/header-checker/android/update_clang-tools.sh index 729804b8b..577e19391 100755 --- a/vndk/tools/header-checker/android/update_clang-tools.sh +++ b/vndk/tools/header-checker/android/update_clang-tools.sh @@ -34,7 +34,7 @@ update_manifest () { "${FETCH_ARTIFACT}" --bid "${BUILD_ID}" --target "linux" \ "manifest_${BUILD_ID}.xml" mv "manifest_${BUILD_ID}.xml" "manifest.xml" - rm .fetch* + rm .fetch* || true } @@ -56,7 +56,8 @@ update_prebuilts () { "${FETCH_ARTIFACT}" --bid "${BUILD_ID}" --target "${target}" \ "build-prebuilts.zip" unzip -o "build-prebuilts.zip" - rm "build-prebuilts.zip" .fetch* + rm "build-prebuilts.zip" + rm .fetch* || true find . | xargs touch }