Skip to content

Print empty string if REUSE_FRONTEND_FIXTURES_ENABLED variable is not set

Reuben Pereira requested to merge rp/fix-bash-var-bug into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Print an empty string if REUSE_FRONTEND_FIXTURES_ENABLED variable is not set.

If the REUSE_FRONTEND_FIXTURES_ENABLED variable doesn't exist, attempting to use it results in the following error, because set -u has been set in the script: scripts/gitlab_component_helpers.sh: line 109: REUSE_FRONTEND_FIXTURES_ENABLED: unbound variable. Example failure in CI: https://gitlab.com/gitlab-org/security/gitlab/-/jobs/4186535273.

Related to #408943 (closed).

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 Reuben Pereira

Merge request reports