Skip to content

Commit 108804c

Browse files
committed
more fix
1 parent 1c65c83 commit 108804c

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/base/.devcontainer/scripts/install_github_release.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ if ! command -v gh >/dev/null 2>&1; then
1616
exit 1
1717
fi
1818

19+
required_vars=(
20+
"GITHUB_REPO"
21+
"VERSION"
22+
"DOWNLOAD_BINARY"
23+
"TOOL"
24+
"COMPRESSION"
25+
"VERIFY_BINARY_ATTESTATION"
26+
"VERIFY_CHECKSUM"
27+
)
28+
29+
for var_name in "${required_vars[@]}"; do
30+
if [ -z "${!var_name:-}" ]; then
31+
echo "${var_name} must be defined"
32+
exit 1
33+
fi
34+
done
35+
1936
if [ "${VERIFY_BINARY_ATTESTATION}" != "true" ] && [ "${VERIFY_CHECKSUM}" != "true" ]; then
2037
echo "VERIFY_BINARY_ATTESTATION or VERIFY_CHECKSUM must be set to true"
2138
exit 1

0 commit comments

Comments
 (0)