ci: Remove duplicate slash before $RESULTS_DIR

The RESULTS_DIR variable is defined by reference to the present
working directory, but if the pwd is the root directory then the
$RESULTS_DIR begins with two slashes instead of one like this: //results.

This is harmless but not necessary, so remove it.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32051>
This commit is contained in:
Deborah Brouwer 2024-11-07 19:31:20 -08:00 committed by Marge Bot
parent e368623fff
commit b5b2515f86

View File

@ -111,7 +111,7 @@ export -f _uncollapsed_section_switch
[ -n "${XDG_RUNTIME_DIR:-}" ] || export XDG_RUNTIME_DIR="$(mktemp -p "$PWD" -d xdg-runtime-XXXXXX)"
if [ -z "${RESULTS_DIR:-}" ]; then
export RESULTS_DIR="$(pwd)/results"
export RESULTS_DIR="${PWD%/}/results"
if [ -e "${RESULTS_DIR}" ]; then
rm -rf "${RESULTS_DIR}"
fi