From 736c767e24dbf3fd71f72d17b95981778bc31982 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Wed, 26 Apr 2023 13:39:58 -0700 Subject: [PATCH] fixed version comparison --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a8ef3c4..6e0480f 100755 --- a/install.sh +++ b/install.sh @@ -315,7 +315,8 @@ userinstall(){ # Check if functions already exist, and check if functions are out of date if [ -f ${installdir}/functions ] ; then # if functions are out of date, remove before installing new version - if [[ $(vercomp $(cat ${rundir/functions} | grep functionsrev ) $installer_functionsrev) == 2 ]] ; then + local installerfrev=$(cat ${rundir}/functions | grep functionsrev ) + if [[ $(vercomp ${installerfrev##*=} $installer_functionsrev ) == 2 ]] ; then rm ${installdir}/functions fi fi