Skip to content

ci: Prevent inadvertent local files deletion in scripts/rspec_helpers.sh

Rémy Coutable requested to merge prevent-inadvertent-deletion-locally into master

What does this MR do and why?

I inadvertently deleted files on my computer when trying to run the update_tests_metadata locally. Since some CI env variables aren't set, we would run rm -rf /**/*! 😱

By default such env variable to a value of a folder that doesn't exist will result in an error thrown instead of an unwanted mass-deletion of files! 😅

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Rémy Coutable

Merge request reports

Loading