ci/shellcheck: Don't overwrite SCRIPTS_DIR with relative path

shellcheck doesn't like it when we have relative paths and it's trying
to check if the files exist.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31602>
This commit is contained in:
Daniel Stone
2024-10-17 10:19:26 +01:00
parent 4bc2d221c9
commit 80d3ee3c78

View File

@@ -1,7 +1,6 @@
#!/usr/bin/env bash
CHECKPATH=".gitlab-ci"
export SCRIPTS_DIR="${CHECKPATH}"
SCRIPTS_DIR="$(realpath "$(dirname "$0")")"
is_bash() {
[[ $1 == *.sh ]] && return 0
@@ -21,4 +20,4 @@ while IFS= read -r -d $'' file; do
exit 1
fi
fi
done < <(find $CHECKPATH -type f \! -path "./.git/*" -print0)
done < <(find "$SCRIPTS_DIR" -type f \! -path "./.git/*" -print0)