High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
improve check script to find golangci-lint in ~/bin
botca204965ed47
diff --git a/scripts/check.sh b/scripts/check.shindex 453007c5..498d93d0 100755--- a/scripts/check.sh+++ b/scripts/check.sh@@ -63,14 +63,24 @@ success_step "Tests with Coverage"# Step 5: Lint check (if golangci-lint is available)check_step "Lint Check"+# Check common locations for golangci-lint+LINT_CMD=""if command -v golangci-lint >/dev/null 2>&1; then- if ! golangci-lint run ./...; then+ LINT_CMD="golangci-lint"+elif [ -x "$HOME/bin/golangci-lint" ]; then+ LINT_CMD="$HOME/bin/golangci-lint"+elif [ -x "/usr/local/bin/golangci-lint" ]; then+ LINT_CMD="/usr/local/bin/golangci-lint"+fi++if [ -n "$LINT_CMD" ]; then+ if ! $LINT_CMD run ./...; thenerror_step "Lint Check"fisuccess_step "Lint Check"elseecho -e "${YELLOW}⚠️ golangci-lint not installed - skipping lint check${NC}"- echo -e "${YELLOW} Install with: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest${NC}"+ echo -e "${YELLOW} Install with: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ~/bin v2.9.0${NC}"fi# Step 6: Clean up