|
@@ -409,14 +409,18 @@ handleUpdate()
|
|
exit 0
|
|
exit 0
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+ set +e
|
|
breakingConfigChange=$(git rev-list "$(git rev-parse HEAD)" | grep d8b73be1de231821db34c677110b7b97e413451f)
|
|
breakingConfigChange=$(git rev-list "$(git rev-parse HEAD)" | grep d8b73be1de231821db34c677110b7b97e413451f)
|
|
|
|
+ set -e
|
|
if [[ -f backend/config/default.json && -z $breakingConfigChange ]]; then
|
|
if [[ -f backend/config/default.json && -z $breakingConfigChange ]]; then
|
|
throw "Configuration has breaking changes. Please rename or remove 'backend/config/default.json' and run the update command again to continue."
|
|
throw "Configuration has breaking changes. Please rename or remove 'backend/config/default.json' and run the update command again to continue."
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+ set +e
|
|
musareshChange=$(echo "${updated}" | grep "musare.sh")
|
|
musareshChange=$(echo "${updated}" | grep "musare.sh")
|
|
dbChange=$(echo "${updated}" | grep "backend/logic/db/schemas")
|
|
dbChange=$(echo "${updated}" | grep "backend/logic/db/schemas")
|
|
bcChange=$(echo "${updated}" | grep "backend/config/default.json")
|
|
bcChange=$(echo "${updated}" | grep "backend/config/default.json")
|
|
|
|
+ set -e
|
|
if [[ ( $2 == "auto" && -z $dbChange && -z $bcChange && -z $musareshChange ) || -z $2 ]]; then
|
|
if [[ ( $2 == "auto" && -z $dbChange && -z $bcChange && -z $musareshChange ) || -z $2 ]]; then
|
|
if [[ -n $musareshChange && $(git diff @\{u\} -- musare.sh) != "" ]]; then
|
|
if [[ -n $musareshChange && $(git diff @\{u\} -- musare.sh) != "" ]]; then
|
|
if [[ $musareshModified != "" ]]; then
|
|
if [[ $musareshModified != "" ]]; then
|