From d54c42045a6c9bcb5f7a05b7ea7cc8ce6c34f556 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 3 Apr 2026 15:33:31 -0400 Subject: [PATCH] fixing mod commands and jq outputs --- src/security.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/security.sh b/src/security.sh index f92b74a..6e298e5 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 go.mod -json | jq ".Toolchain"); +toolchain=$(go mod edit -json go.mod | jq -r ".Toolchain"); echo "[DEBUG] $toolchain found in go.mod"; -version=$(go env -json | jq ".GOVERSION"); +version=$(go env -json | jq -r ".GOVERSION"); echo "[DEBUG] $version found in go env"; if [[ ! -z "$toolchain" ]]; then