mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 02:04:41 +08:00
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:
parent
e368623fff
commit
b5b2515f86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user