From 2c66d59f2a2dcf09e08206f1719d3ec3eaa224dd Mon Sep 17 00:00:00 2001 From: William Ting Date: Fri, 10 Feb 2012 11:06:24 -1000 Subject: [PATCH] redirect older Python users to install v12 --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 819c0b4..7ee9dae 100755 --- a/install.sh +++ b/install.sh @@ -95,7 +95,15 @@ done python_version=`python -c 'import sys; print(sys.version_info[:])'` if [[ ${python_version:1:1} -eq 2 && ${python_version:4:1} -lt 6 ]]; then echo - echo "Incompatible Python version, please upgrade Python to v2.6+" + echo "Incompatible Python version, please upgrade to v2.6+ or v3.0+." + if [[ ${python_version:4:1} -gt 3 ]]; then + echo + echo "Alternatively, you can download v12 that supports Python v2.4+ from:" + echo + echo -e "\thttps://github.com/joelthelion/autojump/tags" + echo + fi + exit 1 fi # check for valid options