Doc: Fix append to two files in variables example
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
The existing documentation added by Add docs for GITLAB_ENV variable (!151019 - merged) • Adam Cohen • 17.0 suggests using the following command to write contents to two files:
echo "ARCH=$(arch)" | tee >> $GITLAB_ENV build.env
However, this command results in overwriting the existing contents of $GITLAB_ENV. This MR updates the command example so it appends to both of the files and preserves the existing contents.
References
Edited by Adam Cohen