Skip to content

Commit

Permalink
chore: update install scripts for nvim 0.10 stable.
Browse files Browse the repository at this point in the history
Signed-off-by: ayamir <lgt986452565@gmail.com>
  • Loading branch information
ayamir committed May 26, 2024
1 parent cee6354 commit 5751ca1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Set-StrictMode -Version 3.0
$ErrorActionPreference = "Stop" # Exit when command fails

# global-scope vars
$REQUIRED_NVIM_VERSION = [version]'0.9.0'
$REQUIRED_NVIM_VERSION_LEGACY = [version]'0.8.0'
$REQUIRED_NVIM_VERSION = [version]'0.10.0'
$REQUIRED_NVIM_VERSION_LEGACY = [version]'0.9.0'
$USE_SSH = $True

# package mgr vars
Expand Down
6 changes: 3 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set -u
DEST_DIR="${HOME}/.config/nvim"
BACKUP_DIR="${DEST_DIR}_backup-$(date +%Y%m%dT%H%M%S)"
CLONE_ATTR=("--progress")
REQUIRED_NVIM_VERSION=0.9.0
REQUIRED_NVIM_VERSION_LEGACY=0.8.0
REQUIRED_NVIM_VERSION=0.10.0
REQUIRED_NVIM_VERSION_LEGACY=0.9.0
USE_SSH=1

abort() {
Expand Down Expand Up @@ -175,7 +175,7 @@ clone_repo() {
elif check_nvim_version "${REQUIRED_NVIM_VERSION_LEGACY}"; then
warn "You have outdated Nvim installed (< ${REQUIRED_NVIM_VERSION})."
info "Automatically redirecting you to the latest compatible version..."
execute "git" "clone" "-b" "0.8" "${CLONE_ATTR[@]}" "$1" "${DEST_DIR}"
execute "git" "clone" "-b" "${REQUIRED_NVIM_VERSION_LEGACY}" "${CLONE_ATTR[@]}" "$1" "${DEST_DIR}"
else
warn "You have outdated Nvim installed (< ${REQUIRED_NVIM_VERSION_LEGACY})."
abort "$(
Expand Down

0 comments on commit 5751ca1

Please sign in to comment.