From 8b6aa2b16db98a51349c1162c06c5c228d9b31e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Henry?= Date: Fri, 20 Jul 2018 23:10:38 +0200 Subject: [PATCH] Alphanet.sh: minor fixes --- scripts/alphanet.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/alphanet.sh b/scripts/alphanet.sh index 5cacf6288..a516cee3d 100755 --- a/scripts/alphanet.sh +++ b/scripts/alphanet.sh @@ -398,11 +398,11 @@ log_endorser() { } stop_endorser() { - if ! check_baker; then - echo -e "\033[31mNo baker to kill!\033[0m" + if ! check_endorser; then + echo -e "\033[31mNo endorser to kill!\033[0m" exit 1 fi - echo -e "\033[32mStopping the baker...\033[0m" + echo -e "\033[32mStopping the endorser...\033[0m" call_docker_compose stop $endorsers } @@ -463,11 +463,11 @@ log_accuser() { } stop_accuser() { - if ! check_baker; then - echo -e "\033[31mNo baker to kill!\033[0m" + if ! check_accuser; then + echo -e "\033[31mNo accuser to kill!\033[0m" exit 1 fi - echo -e "\033[32mStopping the baker...\033[0m" + echo -e "\033[32mStopping the accuser...\033[0m" call_docker_compose stop $accusers }