Closed bjjblackbelt closed 7 months ago
Here is a fix. I am unable to create a pull request at this time.
install.sh
#!/usr/bin/env bash
# Based on https://github.com/codota/TabNine/blob/master/dl_binaries.sh
# Download latest TabNine binaries
set -o errexit
set -o pipefail
set -x
version=${version:-$(curl -sS https://update.tabnine.com/bundles/version)}
os=$(uname -s)
if [[ "$os" == "Darwin" ]]; then
if [ "$(uname -m)" == "arm64" ]; then
platform="aarch64-apple-darwin"
else
platform="$(uname -m)-apple-darwin"
fi
elif [[ "$os" == "Linux" ]]; then
platform="$(uname -m)-unknown-linux-musl"
elif [[ "$os" == *"MINGW64"* ]]; then
platform="$(uname -m)-pc-windows-gnu"
fi
# we want the binary to reside inside our plugin's dir
cd "$(dirname "$0")"
path=$version/$platform
curl "https://update.tabnine.com/bundles/${path}/TabNine.zip" --create-dirs -o "binaries/${path}/TabNine.zip"
unzip -o "binaries/${path}/TabNine.zip" -d "binaries/${path}"
rm -rf "binaries/${path}/TabNine.zip"
if [[ "$os" != *"MINGW64"* ]]; then
chmod +x "binaries/$path/*"
fi
Why did you change the case
into multiple if
else
?
When executing Neovim from Git Bash, which was installed using Chocolatey, the build step fails with the following message: