bazel: fix ordering of injects

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-08-21 11:46:10 +02:00
parent d6624a472d
commit 590931f3ac

View File

@ -8,15 +8,14 @@
lib=$(realpath @@BASE_LIB@@) || exit 1
stat "${lib}" >> /dev/null || exit 1
yq=$(realpath @@YQ@@)
stat "${yq}" >> /dev/null
# shellcheck source=../sh/lib.bash
if ! source "${lib}"; then
echo "Error: could not find import"
exit 1
fi
yq=$(realpath @@YQ@@)
stat "${yq}" >> /dev/null
bootstrapper=$(realpath @@BOOTSTRAPPER@@)
stat "${bootstrapper}" >> /dev/null
upgrade_agent=$(realpath @@UPGRADE_AGENT@@)