From b5b2515f8622dfcc50af0a472fe5d8d296adf49f Mon Sep 17 00:00:00 2001 From: Deborah Brouwer Date: Thu, 7 Nov 2024 19:31:20 -0800 Subject: [PATCH] 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: --- .gitlab-ci/setup-test-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/setup-test-env.sh b/.gitlab-ci/setup-test-env.sh index cb89922e6a4..d8af3c70cff 100644 --- a/.gitlab-ci/setup-test-env.sh +++ b/.gitlab-ci/setup-test-env.sh @@ -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