From 36d48908a19baf580976217cfae3af46040527ff Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Wed, 10 Jun 2020 21:56:08 +0200 Subject: [PATCH] Add migration for smooth stable update --- scripts/migrations | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/migrations b/scripts/migrations index ffda85fe..c8e33362 100755 --- a/scripts/migrations +++ b/scripts/migrations @@ -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