fix: add check before performing chmod on the code coverage path, as it does not exist if the package is not installed

pull/262/head
Quake 2024-02-28 13:42:19 +01:00
parent 7c242f70d9
commit de56afb430
1 changed files with 7 additions and 1 deletions

View File

@ -242,4 +242,10 @@ fi
# Add read permissions for everyone to all artifacts
chmod -R a+r "$UNITY_PROJECT_PATH"
chmod -R a+r "$FULL_ARTIFACTS_PATH"
chmod -R a+r "$FULL_COVERAGE_RESULTS_PATH"
# Check if coverage results directory exists
if [ -d "$FULL_COVERAGE_RESULTS_PATH" ]; then
chmod -R a+r "$FULL_COVERAGE_RESULTS_PATH"
else
echo "Coverage results directory does not exist. If you are expecting coverage results, please make sure the Code Coverage package is installed in your project."
fi