Skip to content

Commit

Permalink
fix(ci): grep is not working correctly (#7003) (#7067)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Feb 27, 2025
1 parent 9608fdf commit f1f4913
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@ COVERAGE_DIR=$(BUILD_DIR)/coverage
BEATS?=elastic-agent
PROJECTS= $(BEATS)
PYTHON_ENV?=$(BUILD_DIR)/python-env
MAGE_PRESENT := $(shell mage --version 2> /dev/null | grep $(MAGE_VERSION))
MAGE_IMPORT_PATH ?= github.com/magefile/mage
export MAGE_IMPORT_PATH

## mage : Sets mage
.PHONY: mage
mage:
ifndef MAGE_PRESENT
@echo Installing mage.
@go install ${MAGE_IMPORT_PATH}
@echo Installing mage
@go install github.com/magefile/mage
@-mage -clean
else
@echo Mage already installed.
endif

## help : Show this help.
help: Makefile
Expand Down

0 comments on commit f1f4913

Please sign in to comment.