fixed version comparison
This commit is contained in:
parent
fdab517c13
commit
736c767e24
1 changed files with 2 additions and 1 deletions
|
|
@ -315,7 +315,8 @@ userinstall(){
|
||||||
# Check if functions already exist, and check if functions are out of date
|
# Check if functions already exist, and check if functions are out of date
|
||||||
if [ -f ${installdir}/functions ] ; then
|
if [ -f ${installdir}/functions ] ; then
|
||||||
# if functions are out of date, remove before installing new version
|
# 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
|
rm ${installdir}/functions
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue