diff --git a/projects/msp-tools/guru-rmm/signing-attestation/signing-config/build-agents.sh b/projects/msp-tools/guru-rmm/signing-attestation/signing-config/build-agents.sh index 7b1a178..cb39f2d 100644 --- a/projects/msp-tools/guru-rmm/signing-attestation/signing-config/build-agents.sh +++ b/projects/msp-tools/guru-rmm/signing-attestation/signing-config/build-agents.sh @@ -19,7 +19,7 @@ cd "$REPO_DIR" sudo -u guru git fetch origin 2>&1 | tee -a "$LOG_FILE" sudo -u guru git reset --hard origin/main 2>&1 | tee -a "$LOG_FILE" -VERSION=$(grep '^version' agent/Cargo.toml | head -1 | sed 's/.*"\(.*\)".*//') +VERSION=$(awk -F'"' '/^version/{print $2; exit}' agent/Cargo.toml) log "Building version: $VERSION" # Build Linux agent