diff options
author | Fumihiro Kanaya <k-ya@ciata.lan> | 2020-01-06 12:20:11 +0900 |
---|---|---|
committer | Fumihiro Kanaya <k-ya@ciata.lan> | 2020-01-06 12:20:11 +0900 |
commit | 387101eba70a86304efa4a944efc85f56969fcc8 (patch) | |
tree | a3e51b9edb1caf91b2b2c96382b85c771e5f75bd | |
parent | 6d949ce6ce9ed6a0feb1024edada76bd411498b3 (diff) | |
download | vim-lsp-settings-387101eba70a86304efa4a944efc85f56969fcc8.tar.gz vim-lsp-settings-387101eba70a86304efa4a944efc85f56969fcc8.tar.bz2 vim-lsp-settings-387101eba70a86304efa4a944efc85f56969fcc8.zip |
fix: package path
-rwxr-xr-x | installer/install-omnisharp-lsp.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/installer/install-omnisharp-lsp.sh b/installer/install-omnisharp-lsp.sh index aeb902c..7712465 100755 --- a/installer/install-omnisharp-lsp.sh +++ b/installer/install-omnisharp-lsp.sh @@ -3,11 +3,13 @@ set -e os=$(uname -s | tr "[:upper:]" "[:lower:]") +arch="-x64" case $os in linux) ;; darwin) os="osx" + arch="" ;; *) printf "%s doesn't supported by bash installer" "$os" @@ -16,10 +18,10 @@ darwin) esac version="v1.34.9" -url="https://github.com/OmniSharp/omnisharp-roslyn/releases/download/$version/omnisharp-$os-x64.tar.gz" +url="https://github.com/OmniSharp/omnisharp-roslyn/releases/download/$version/omnisharp-$os$arch.tar.gz" curl -LO "$url" -tar xzvf omnisharp-$os-x64.tar.gz -rm omnisharp-$os-x64.tar.gz +tar xzvf omnisharp-$os$arch.tar.gz +rm omnisharp-$os$arch.tar.gz chmod +x run |