diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2011-12-27 17:52:47 +0000 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2011-12-27 17:52:47 +0000 |
commit | 9a281116dcae722b449ba58a2da102cfc7f05ad8 (patch) | |
tree | eb6e0d5c67a5e19fcfa5b0bd663057ec7ef73a67 | |
parent | 9a8b1ea8c760e31a7c5b71f54fb685be4770a540 (diff) |
Fix python version magic
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |