Add migration for smooth stable update
This commit is contained in:
parent
e673cf3d9e
commit
36d48908a1
@ -4,7 +4,7 @@
|
||||
# $2 INIT
|
||||
# $3 Pre update
|
||||
|
||||
CURR_VERSION=4
|
||||
CURR_VERSION=5
|
||||
|
||||
TUI=${1:-false}
|
||||
INIT=${2:-false}
|
||||
@ -66,9 +66,9 @@ function migrations() {
|
||||
cfg_write $configfile version $CURR_VERSION
|
||||
fi
|
||||
|
||||
# Hack to fix compile error in version 1 to 3 caused by CoTiRe.
|
||||
if [ "$version" -lt 4 ]; then
|
||||
cfg_write $configfile version 4
|
||||
# Hack to fix compile error in version 1 to 3 caused by CoTiRe on legacy ubuntu.
|
||||
if [ "$version" -lt 5 ]; then
|
||||
cfg_write $configfile version 5
|
||||
if [ -d "./build/CMakeFiles/cathook.dir" ]; then
|
||||
rm -r ./build/CMakeFiles/cathook.dir
|
||||
fi
|
||||
|
Reference in New Issue
Block a user