fix: add check before performing chmod on the code coverage path, as it does not exist if the package is not installed
parent
7c242f70d9
commit
de56afb430
|
@ -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
|
Loading…
Reference in New Issue