From c8597d51c273a0a6ffe83335bb09a3489b50936c Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 21 May 2020 14:15:24 -0500 Subject: [PATCH] Output sync direction --- gravity-sync.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gravity-sync.sh b/gravity-sync.sh index df5aeb5..35907fd 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -59,12 +59,15 @@ else exit fi +echo -e "${CYAN}Evaluating command for sync direction${NC}" + case $# in 0) echo -e "${RED}Failure${NC}: ${GRAVITY_FI} replication direction required" echo "Usage: $0 {pull|push}" echo -e "> ${YELLOW}Pull${NC} will copy the ${GRAVITY_FI} configuration on $REMOTE_HOST to this server" echo -e "> ${YELLOW}Push${NC} will force any changes made on this server to the primary" + echo -e "No changes have been made to the system" exit 1 ;; 1)