mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
cleaner version check durng upgrade
This commit is contained in:
parent
7b47d3e13d
commit
5439dc14f5
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user