aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorpojiro <pojiro.jp@gmail.com>2020-01-21 19:51:31 +0900
committerpojiro <pojiro.jp@gmail.com>2020-01-21 19:51:31 +0900
commit3499530acfddce32c6987536e842bc430e00dcc4 (patch)
treed1925433e8b49def19a23c2af56945263d3d0369 /installer
parent3f2a222c14aed65d588a1770991f47ab5aa651eb (diff)
downloadvim-lsp-settings-3499530acfddce32c6987536e842bc430e00dcc4.tar.gz
vim-lsp-settings-3499530acfddce32c6987536e842bc430e00dcc4.tar.bz2
vim-lsp-settings-3499530acfddce32c6987536e842bc430e00dcc4.zip
Add LinuxMint support to clangd installer
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/install-clangd.sh28
1 files changed, 22 insertions, 6 deletions
diff --git a/installer/install-clangd.sh b/installer/install-clangd.sh
index 3d1cfd0..278792f 100755
--- a/installer/install-clangd.sh
+++ b/installer/install-clangd.sh
@@ -13,12 +13,28 @@ case $os in
;;
esac
-# Check Ubuntu version
-ubuntu_version=$(lsb_release -a 2>&1 | grep 'Release' | awk '{print $2}')
-
-case $ubuntu_version in
- 14.04|16.04|18.04)
- platform="linux-gnu-ubuntu-$ubuntu_version"
+distributor_id=$(lsb_release -a 2>&1 | grep 'Distributor ID' | awk '{print $3}')
+case $distributor_id in
+ # Check Ubuntu version
+ Ubuntu)
+ ubuntu_version=$(lsb_release -a 2>&1 | grep 'Release' | awk '{print $2}')
+ case $ubuntu_version in
+ 14.04|16.04|18.04)
+ platform="linux-gnu-ubuntu-$ubuntu_version"
+ ;;
+ esac
+ ;;
+ # Check LinuxMint version
+ LinuxMint)
+ linuxmint_version=$(lsb_release -a 2>&1 | grep 'Release' | awk '{print $2}')
+ case $linuxmint_version in
+ 19|19.1|19.2|19.3)
+ platform="linux-gnu-ubuntu-18.04"
+ ;;
+ 18|18.1|18.2|18.3)
+ platform="linux-gnu-ubuntu-16.04"
+ ;;
+ esac
;;
esac