Skip to content

Commit ecb1611

Browse files
committed
Makefile: suppress another error message on Windows
These '2>/dev/null' are important on Windows because without them a mere `make` stalls.
1 parent 8eb0425 commit ecb1611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ DST=_site
1212
# (https://stackoverflow.com/a/4933395)
1313
ifneq (, $(shell which python3 2>/dev/null))
1414
PYTHON := python3
15-
else ifneq (, $(shell which python))
15+
else ifneq (, $(shell which python 2>/dev/null))
1616
PYTHON_VERSION_FULL := $(wordlist 2,4,$(subst ., ,$(shell python --version 2>&1)))
1717
PYTHON_VERSION_MAJOR := $(word 1,${PYTHON_VERSION_FULL})
1818
ifneq (3, ${PYTHON_VERSION_MAJOR})

0 commit comments

Comments
 (0)