summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2011-12-27 17:52:47 +0000
committerAlex Merry <dev@randomguy3.me.uk>2011-12-27 17:52:47 +0000
commit9a281116dcae722b449ba58a2da102cfc7f05ad8 (patch)
treeeb6e0d5c67a5e19fcfa5b0bd663057ec7ef73a67
parent9a8b1ea8c760e31a7c5b71f54fb685be4770a540 (diff)
Fix python version magic
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 49d6061..f623341 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
all:
INSTALL = install
-PYTHON = $(shell if python --version 2>/dev/null | grep "Python 3" >/dev/null 2>/dev/null; then echo python; else echo python2; fi)
+PYTHON = $(shell if python --version 2>&1 | grep "Python 3" >/dev/null 2>/dev/null; then echo python2; else echo python; fi)
EGREP = egrep
XMLS = $(wildcard spec/*.xml)