File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,19 @@ function build_from_source() {
8282
8383# Install on Linux using AppImage
8484function setup_neovim_linux_appimage() {
85+ local version=" $1 "
8586 local nvim_release_name=" nvim-$1 -linux.appimage"
8687 local nvim_appimage_temp_path=" $temp_dir /$nvim_release_name "
8788
89+ set +e # Prevent termination based on compare_version's return
90+ compare_versions " $version " v0.10.3
91+ local result=$?
92+ set -e # Re-enable termination based on return values
93+
94+ if [[ $version == " nightly" ]] || [[ $version == " stable" ]] || [[ $result -eq 1 ]]; then
95+ nvim_release_name=" nvim-$1 -linux-$2 .appimage"
96+ fi
97+
8898 if [ ! -e " $nvim_version_dir /$nvim_release_name " ]; then
8999 echo " Expected release to be present at $nvim_version_dir /$nvim_release_name . Aborting..."
90100 exit 1
@@ -169,7 +179,7 @@ function install_neovim() {
169179
170180 # Install Neovim based on the detected OS
171181 if [[ $os == " Linux" ]]; then
172- setup_neovim_linux_appimage " $nvim_version "
182+ setup_neovim_linux_appimage " $nvim_version " " $arch_type "
173183 elif [[ $os == " Darwin" ]]; then
174184 setup_neovim_macos " $nvim_version " " $arch_type "
175185 else
You can’t perform that action at this time.
0 commit comments