Skip to content

Use shell builtin `command -v` instead non-standard `which`

What does this MR do?

This MR improves the consistency and maintainability, robustness of shell scripts in GitLab projects

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.

Conformity

/cc @godfat for reviewing, thanks!

Merge request reports