From 85189421abb09d40d5801b516a03d78e6d7ed915 Mon Sep 17 00:00:00 2001 From: gryf Date: Thu, 20 Jun 2019 10:33:42 +0200 Subject: [PATCH] Check ubuntu version --- bootstrap.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index a7a2863..8896080 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,10 +3,19 @@ # 1. update sudo apt update && sudo apt -y upgrade -# 2. install tools -sudo apt install -y vim-gtk-py2 mc python-jedi python3-jedi htop \ +lsb_release -a 2>/dev/null | grep -q bionic +if [[ $? -eq 0 ]]; then + PGS=vim-gtk mc python-jedi python3-jedi htop \ python-flake8 python3-flake8 exuberant-ctags pylint flake8 pylint3 \ git-review silversearcher-ag python-apsw ccze python-pip +else + PGS=vim-gtk-py2 mc python-jedi python3-jedi htop \ + python-flake8 python3-flake8 exuberant-ctags pylint flake8 pylint3 \ + git-review silversearcher-ag python-apsw ccze python-pip +fi + +# 2. install tools +sudo apt install -y $PGS # 3. cleanup sudo apt-get autoremove && sudo apt-get autoclean