Skip to content

Commit

Permalink
Download neovim in bin/install for asdf v0.7 (Fix #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
richin13 committed Nov 24, 2020
1 parent 80db2fd commit 895380b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ install_neovim() {
local download_path="$2"
local install_path="$3"

if [ -z "$download_path" ]; then
#: We're on asdf 0.7.*
ASDF_DOWNLOAD_PATH="/tmp/asdf-neovim-$install_type-$ASDF_INSTALL_VERSION"
$download_path=$ASDF_DOWNLOAD_PATH
if [ -e $download_path ]; then
rm -rf $download_path
fi
mkdir $download_path
source "$(dirname "$0")/download"
fi

if [ "$install_type" = "version" ]; then
# move the prebuilt artifact to the install path
mv -f "$download_path"/** "$install_path"
Expand Down

0 comments on commit 895380b

Please sign in to comment.