mirror of
https://github.com/gryf/vmstrap.git
synced 2025-12-18 12:00:31 +01:00
Check ubuntu version
This commit is contained in:
13
bootstrap.sh
13
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
|
||||
|
||||
Reference in New Issue
Block a user