Skip to content

Execute `exit 1` when shell script `cd` fails

What does this MR do?

This MR improves the consistency and maintainability, robustness of shell scripts in GitLab projects, make the scripts following the Shell scripting standards and style guidelines step by step.

This was originally something doing in gitlab-foss!31014 (comment 225759258), as @rpaik asked here(gitlab-foss!31014 (comment 225759258)), I'd like to continue shell script refactoring, but I can't comment there, so directly send another MR in the new repository, and separate different items into different MR, to minimize the effort on resolving conflicts.

Does this MR meet the acceptance criteria?

Conformity

Merge request reports