aboutsummaryrefslogtreecommitdiff
path: root/installer/install-fsautocomplete.sh
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2020-01-31 00:31:03 +0900
committerGitHub <noreply@github.com>2020-01-31 00:31:03 +0900
commit382223bca5cc2ca87f8af1b7cdee3f65b8ad8fe0 (patch)
tree75925f379568738b008c0792bbfa195a89e97a55 /installer/install-fsautocomplete.sh
parentead5f7718dca26776ab03fccad15df31544ad74a (diff)
parent6e6f2a345deb694e91bfda53885573370eb11e91 (diff)
downloadvim-lsp-settings-382223bca5cc2ca87f8af1b7cdee3f65b8ad8fe0.tar.gz
vim-lsp-settings-382223bca5cc2ca87f8af1b7cdee3f65b8ad8fe0.tar.bz2
vim-lsp-settings-382223bca5cc2ca87f8af1b7cdee3f65b8ad8fe0.zip
Merge pull request #136 from johejo/fix/shellcheck_shfmt
shellcheck, shfmt
Diffstat (limited to 'installer/install-fsautocomplete.sh')
-rwxr-xr-xinstaller/install-fsautocomplete.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/installer/install-fsautocomplete.sh b/installer/install-fsautocomplete.sh
index e19d2e8..43827a4 100755
--- a/installer/install-fsautocomplete.sh
+++ b/installer/install-fsautocomplete.sh
@@ -3,19 +3,20 @@
set -e
if command -v dotnet >/dev/null 2>&1; then
- echo "dotnet installed"
- dotnetcmd=dotnet
+ echo "dotnet installed"
+ dotnetcmd=dotnet
else
- echo "dotnet not found, installing..."
- # REF https://github.com/neovim/nvim-lsp/blob/master/lua/nvim_lsp/pyls_ms.lua
- curl -L https://dot.net/v1/dotnet-install.sh | bash -s -- -i "./.dotnet"
- dotnetcmd="\\$DIR/.dotnet/dotnet"
+ echo "dotnet not found, installing..."
+ # REF https://github.com/neovim/nvim-lsp/blob/master/lua/nvim_lsp/pyls_ms.lua
+ curl -L https://dot.net/v1/dotnet-install.sh | bash -s -- -i "./.dotnet"
+ dotnetcmd="\\$DIR/.dotnet/dotnet"
fi
url="https://ci.appveyor.com/api/projects/fsautocomplete/fsautocomplete/artifacts/bin/pkgs/fsautocomplete.netcore.zip?branch=master"
zip=fsautocomplete.zip
curl -L "$url" -o "$zip"
-unzip -o -d "fsautocomplete.netcore" "$zip"
+unzip -o -d "fsautocomplete.netcore" "$zip"
+rm "$zip"
cat <<EOF >fsautocomplete
#!/bin/sh