From aa6b067d653083cc40b34417482c16f76c4c6adc Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 6 Oct 2020 14:23:33 +0200 Subject: [PATCH] fix version check --- setup/upgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/upgrade.sh b/setup/upgrade.sh index 82a5a864d..230b5bce2 100644 --- a/setup/upgrade.sh +++ b/setup/upgrade.sh @@ -65,7 +65,7 @@ verlt() { version_error() { - printf "You must upgrade to %s first.\n Please read https://github.com/sleede/fab-manager/blob/master/doc/production_readme.md#update-fab-manager" "$1" + printf "You must upgrade to %s first.\nPlease refer to https://github.com/sleede/fab-manager/blob/master/doc/production_readme.md#update-fab-manager for instructions\n" "$1" exit 3 } @@ -73,7 +73,7 @@ version_check() { VERSION=$(docker-compose exec "$SERVICE" cat .fabmanager-version) if [[ $? = 1 ]]; then - VERSION=$(docker-compose exec fabmanager_staging cat package.json | grep version | awk 'BEGIN { FS = "\"" } ; {print $4}') + VERSION=$(docker-compose exec "$SERVICE" cat package.json | grep version | awk 'BEGIN { FS = "\"" } ; {print $4}') fi if verlt "$VERSION" 2.8.3; then