Skip to content

Commit

Permalink
chore(Makefile): change Jython detection strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Apr 30, 2024
1 parent 8952361 commit 5499acf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ clean: ## Uninstall all Jython packages.
##@ Initialize

check: ## Check if Jython is installed.
@echo "Cheking if Jython is installed…"
@if ! command -v jython &> /dev/null; then \
echo "Jython is not installed. Please install Jython before proceeding."; \
exit 1; \
fi
ifeq (, $(shell which jython))
$(error "No jython in $(PATH). Please install Jython before proceeding.")
endif
@echo "Jython was found in PATH."

init: ## Run check and create required directories for other targets.
@echo "Initializing…"
Expand Down

0 comments on commit 5499acf

Please sign in to comment.