Fix bug in migration
This commit is contained in:
parent
656e4e4a9e
commit
26d9f6d8a3
@ -50,7 +50,7 @@ fi
|
|||||||
|
|
||||||
if [ "$version" == 1 ]; then
|
if [ "$version" == 1 ]; then
|
||||||
cfg_write $configfile version 2
|
cfg_write $configfile version 2
|
||||||
if [ -d "./build/cotire" ]; then
|
if [ -d "./build/CMakeFiles/cathook.dir" ]; then
|
||||||
rm -r ./build/cotire
|
rm -r ./build/CMakeFiles/cathook.dir
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -25,7 +25,11 @@ echo $$ > ${LOCKFILE}
|
|||||||
. ./scripts/config.shlib
|
. ./scripts/config.shlib
|
||||||
|
|
||||||
# Run migrations
|
# 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
|
if [ "$update_channel" != "developer" ]; then
|
||||||
./scripts/migrations "$@" || exit 0
|
./scripts/migrations "$@" || exit 0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user