diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d79f2ba4..036e7b32f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog Fab-manager +## Next release +- Prevent showing error message when testing for old versions during upgrade + ## v4.7.5 2021 March 08 - Fix a bug: unable to compile the assets during the upgrade, if the env file has some whitespaces around the equal sign diff --git a/setup/upgrade.sh b/setup/upgrade.sh index 4a99e2cef..ea8e8914f 100644 --- a/setup/upgrade.sh +++ b/setup/upgrade.sh @@ -67,7 +67,7 @@ version_error() version_check() { - VERSION=$(docker-compose exec -T "$SERVICE" cat .fabmanager-version) + VERSION=$(docker-compose exec -T "$SERVICE" cat .fabmanager-version 2>/dev/null) if [[ $? = 1 ]]; then VERSION=$(docker-compose exec -T "$SERVICE" cat package.json | jq -r '.version') fi