1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] during the upgrade, unable to detect the target when not explicitly specified

This commit is contained in:
Sylvain 2021-06-15 13:05:38 +02:00
parent 58c9927e65
commit 17ab75cfa5
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: during the upgrade, unable to detect the target when not explicitly specified
## v5.0.4 2021 June 15
- Ability to disable the public agenda

View File

@ -88,7 +88,7 @@ target_version()
if [[ "$TAG" =~ ^:release-v[\.0-9]+$ ]]; then
TARGET=$(echo "$TAG" | grep -Eo '[\.0-9]{5}')
elif [ "$TAG" = ":latest" ]; then
elif [ "$TAG" = ":latest" ] || [ "$TAG" = "" ]; then
TARGET=$(\curl -sSL "https://hub.fab-manager.com/api/versions/latest" | jq -r '.semver')
else
TARGET='custom'