Fix bug in migration
This commit is contained in:
parent
656e4e4a9e
commit
26d9f6d8a3
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user