From 407582719c4ebf85a0375128bd38d169608beeee Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 3 Apr 2026 15:54:51 -0400 Subject: [PATCH] forgot jq empty --- src/security.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/security.sh b/src/security.sh index c627b93..d54d8de 100755 --- a/src/security.sh +++ b/src/security.sh @@ -7,10 +7,10 @@ if [[ "$STATIC_FLAG" == "no" && "$VULN_CHECK" == "no" ]]; then exit 0; 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"; -version=$(go env -json | jq -r ".GOVERSION"); +version=$(go env -json | jq -r ".GOVERSION // empty"); echo "[DEBUG] $version found in go env"; if [[ -n "$toolchain" ]]; then