Skip to content

Commit 7abbc4a

Browse files
committed
More compact version probing
1 parent a629788 commit 7abbc4a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ endif
1515
latest:: lint
1616
.PHONY: lint
1717

18-
PYTHON := $(shell which python3)
19-
ifeq ($(PYTHON),)
20-
PYTHON := $(shell which python)
21-
endif
18+
PYTHON := $(or $(shell which python3),$(shell which python))
2219

23-
ifneq ($(PYTHON),)
2420
lint::
2521
@$(PYTHON) ./.lint.py draft-*.md
26-
endif

0 commit comments

Comments
 (0)