diff options
author | pojiro <pojiro.jp@gmail.com> | 2020-01-21 19:51:31 +0900 |
---|---|---|
committer | pojiro <pojiro.jp@gmail.com> | 2020-01-21 19:51:31 +0900 |
commit | 3499530acfddce32c6987536e842bc430e00dcc4 (patch) | |
tree | d1925433e8b49def19a23c2af56945263d3d0369 /installer/install-clangd.sh | |
parent | 3f2a222c14aed65d588a1770991f47ab5aa651eb (diff) | |
download | vim-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/install-clangd.sh')
-rwxr-xr-x | installer/install-clangd.sh | 28 |
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 |