From e1a7b9329c7dccf6fbfb75e54e29892f62c4a402 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sat, 30 May 2020 22:16:42 -0500 Subject: [PATCH] Tighten up verbage --- CHANGELOG.md | 3 +++ gravity-sync.sh | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17b6267..9e14dfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ #### 1.7.4 - (**Featureish**) `./gravity-sync.sh dev` will now toggle dev flag on/off. No `touch` required, although it still works that way under the covers. Improvement of methods added in 1.7.2. +- Slightly less verbose in some places to make up for being more verbose in others. +- [DONE] has become [ OK ] in output. +- Tighten up verbage of some status messages. - Detects absence of ssh client command on host OS (DietPi) - Detects absence of rsync client command on host OS (DietPi) - Detects absence of ssh-keygen on host OS and will use dropbearkey as an alternative (DietPi) diff --git a/gravity-sync.sh b/gravity-sync.sh index 7d61c4c..19a4c4e 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -658,12 +658,12 @@ function detect_ssh { echo_good else echo_fail - MESSAGE="${PROGRAM} requires SSH be installed" + MESSAGE="Attempting to Compensate" echo_info distro_check - MESSAGE="Installing SSH" + MESSAGE="Installing SSH on $HOSTNAME" echo_stat ${PKG_INSTALL} ssh >/dev/null 2>&1 error_validate @@ -677,12 +677,12 @@ function detect_ssh { echo_good else echo_fail - MESSAGE="${PROGRAM} requires RSYNC be installed" + MESSAGE="RSYNC is Required" echo_info distro_check - MESSAGE="Installing RSYNC" + MESSAGE="Attempting to Compensate" echo_stat ${PKG_INSTALL} rsync >/dev/null 2>&1 error_validate @@ -955,7 +955,7 @@ function config_delete { # Exit Codes ## No Changes Made function exit_nochange { - MESSAGE="${PROGRAM} ${TASKTYPE} Aborting" + MESSAGE="${BOLD}${PROGRAM}${NC} ${TASKTYPE} Aborting" echo_info exit 0 } @@ -963,7 +963,7 @@ function exit_nochange { ## Changes Made function exit_withchange { SCRIPT_END=$SECONDS - MESSAGE="${PROGRAM} ${TASKTYPE} Completed in $((SCRIPT_END-SCRIPT_START)) seconds" + MESSAGE="${BOLD}${PROGRAM}${NC} ${TASKTYPE} Completed in $((SCRIPT_END-SCRIPT_START)) seconds" echo_info exit 0 }