From 387101eba70a86304efa4a944efc85f56969fcc8 Mon Sep 17 00:00:00 2001 From: Fumihiro Kanaya Date: Mon, 6 Jan 2020 12:20:11 +0900 Subject: fix: package path --- installer/install-omnisharp-lsp.sh | 8 +++++--- 1 file 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 -- cgit v1.2.3-54-g00ecf