forgot jq empty

This commit is contained in:
2026-04-03 15:54:51 -04:00
parent 2887531b19
commit 407582719c

View File

@@ -7,10 +7,10 @@ if [[ "$STATIC_FLAG" == "no" && "$VULN_CHECK" == "no" ]]; then
exit 0; exit 0;
fi fi
toolchain=$(go mod edit -json go.mod | jq -r ".Toolchain"); toolchain=$(go mod edit -json go.mod | jq -r ".Toolchain // empty");
echo "[DEBUG] $toolchain found in go.mod"; echo "[DEBUG] $toolchain found in go.mod";
version=$(go env -json | jq -r ".GOVERSION"); version=$(go env -json | jq -r ".GOVERSION // empty");
echo "[DEBUG] $version found in go env"; echo "[DEBUG] $version found in go env";
if [[ -n "$toolchain" ]]; then if [[ -n "$toolchain" ]]; then