From 8c2ceb1b1f4419d2c056be9190d00f5138cc1836 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Mon, 8 May 2023 15:12:33 -0700 Subject: [PATCH] changed detectvim to look for latest version --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 941963d..d278892 100755 --- a/install.sh +++ b/install.sh @@ -154,7 +154,7 @@ run-and-log(){ detectvim(){ # If the vim install directory exists, check for and store the highest numerical value version installed if [[ -d /usr/share/vim ]] ; then - viminstall=$(ls -lah /usr/share/vim/ | grep vim | grep -v rc | awk '{print $NF}') + viminstall=$(ls -lah /usr/share/vim/ | grep vim | grep -v rc | awk '{print $NF}' | tail -n 1) else viminstall=null warn "vim is not currently installed, unable to set up colorscheme and formatting"