diff --git a/bashhub/version.py b/bashhub/version.py index 3a75bd9..5cbe71d 100644 --- a/bashhub/version.py +++ b/bashhub/version.py @@ -1,5 +1,5 @@ import platform -__version__ = '2.1.2' +__version__ = '2.1.3' version_str = 'Bashhub {0} (python {1})'.format(__version__, platform.python_version()) diff --git a/install-bashhub.sh b/install-bashhub.sh index 955ca2f..761805c 100755 --- a/install-bashhub.sh +++ b/install-bashhub.sh @@ -38,7 +38,7 @@ fi python_command=' import sys -if (3, 5, 0) < sys.version_info < (3,8): +if (3, 5, 0) < sys.version_info < (4,0): sys.exit(0) elif (2, 7, 0) < sys.version_info < (3,0): sys.exit(0) @@ -52,7 +52,7 @@ fish_config="${XDG_CONFIG_HOME:-~/.config}/fish/config.fish" # Optional parameter to specify a github branch # to pull from. -github_branch=${1:-'2.1.2'} +github_branch=${1:-'2.1.3'} install_bashhub() { check_dependencies @@ -62,7 +62,7 @@ install_bashhub() { get_and_check_python_version() { # Prefer Python 3 versions over python 2 - python_version_array=( "python3.7" "python3.6" "python3.5" "python3" "python" "python2.7" "python27" "python2") + python_version_array=( "python3.8" "python3.7" "python3.6" "python3.5" "python3" "python" "python2.7" "python27" "python2") for python_version in "${python_version_array[@]}"; do if type "$python_version" &> /dev/null; then diff --git a/tests/shell/install-bashhub.bats b/tests/shell/install-bashhub.bats index c9e1e35..c1547e1 100644 --- a/tests/shell/install-bashhub.bats +++ b/tests/shell/install-bashhub.bats @@ -31,6 +31,7 @@ setup() { @test "get_and_check_python_version should find python3 first" { # Mock up some fake responses here. + python3.8() { return 1; } python3.7() { return 1; } python3.6() { return 1; } python3.5() { return 1; } @@ -52,6 +53,7 @@ setup() { # Mock up some fake responses here. python3() { return 1; } + python3.8() { return 1; } python3.7() { return 1; } python3.6() { return 1; } python3.5() { return 1; }