From 2f2d3da6501e98b8344318ee898be07faa1896a2 Mon Sep 17 00:00:00 2001 From: gryf Date: Thu, 17 Sep 2020 13:05:00 +0200 Subject: [PATCH] 16.04 doen't have python3.6. --- bootstrap.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index b3987d6..27c2791 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -168,9 +168,17 @@ ubuntu() { # 4. change alternatives sudo update-alternatives --set editor /usr/bin/vim.basic - sudo update-alternatives \ - --install /usr/bin/python python /usr/bin/python3.6 10 - sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10 + case $DISTRO_R in + '18.04') + sudo update-alternatives \ + --install /usr/bin/python python /usr/bin/python3.6 10 + sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10 + ;; + '20.04') + echo "20.04 is not yet supported" + exit 1 + ;; + esac # 5. install tools from pypi sudo pip install pip --upgrade