aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFumihiro Kanaya <k-ya@ciata.lan>2020-01-06 12:20:11 +0900
committerFumihiro Kanaya <k-ya@ciata.lan>2020-01-06 12:20:11 +0900
commit387101eba70a86304efa4a944efc85f56969fcc8 (patch)
treea3e51b9edb1caf91b2b2c96382b85c771e5f75bd
parent6d949ce6ce9ed6a0feb1024edada76bd411498b3 (diff)
downloadvim-lsp-settings-387101eba70a86304efa4a944efc85f56969fcc8.tar.gz
vim-lsp-settings-387101eba70a86304efa4a944efc85f56969fcc8.tar.bz2
vim-lsp-settings-387101eba70a86304efa4a944efc85f56969fcc8.zip
fix: package path
-rwxr-xr-xinstaller/install-omnisharp-lsp.sh8
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