Fix bug in migration

This commit is contained in:
TotallyNotElite 2019-10-19 19:21:40 +02:00
parent 656e4e4a9e
commit 26d9f6d8a3
2 changed files with 7 additions and 3 deletions

View File

@ -50,7 +50,7 @@ fi
if [ "$version" == 1 ]; then
cfg_write $configfile version 2
if [ -d "./build/cotire" ]; then
rm -r ./build/cotire
if [ -d "./build/CMakeFiles/cathook.dir" ]; then
rm -r ./build/CMakeFiles/cathook.dir
fi
fi

View File

@ -25,7 +25,11 @@ echo $$ > ${LOCKFILE}
. ./scripts/config.shlib
# Run migrations
update_channel="$(cfg_read $configfile update_channel)"
exists=true
cfg_haskey $configfile update_channel || exists=false
if [ "$exists" == true ]; then
update_channel="$(cfg_read $configfile update_channel)"
fi
if [ "$update_channel" != "developer" ]; then
./scripts/migrations "$@" || exit 0
fi