mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
WARN headers are purple
This commit is contained in:
parent
8836be495d
commit
19d4c9c744
@ -17,6 +17,7 @@
|
||||
- Fix bug with `dropbearkey` not finding .ssh folder.
|
||||
- Numerous fixes to accomidate DietPi in general.
|
||||
- Fixes issue where `compare` function would show changes where actually none existed.
|
||||
- [WARN] header is now purple all the way across, consistent with [INFO] as of 1.7.4.
|
||||
|
||||
#### 1.7.5
|
||||
- No code changes!
|
||||
|
@ -725,9 +725,6 @@ function error_validate {
|
||||
|
||||
## Validate Sync Required
|
||||
function md5_compare {
|
||||
# MESSAGE="Comparing ${GRAVITY_FI} Changes"
|
||||
# echo_info
|
||||
|
||||
HASHMARK='0'
|
||||
|
||||
MESSAGE="Analyzing ${REMOTE_HOST} ${GRAVITY_FI}"
|
||||
@ -747,7 +744,7 @@ function md5_compare {
|
||||
HASHMARK=$((HASHMARK+0))
|
||||
else
|
||||
MESSAGE="${GRAVITY_FI} Differenced"
|
||||
echo_info
|
||||
echo_warn
|
||||
HASHMARK=$((HASHMARK+1))
|
||||
fi
|
||||
|
||||
@ -776,7 +773,7 @@ function md5_compare {
|
||||
HASHMARK=$((HASHMARK+0))
|
||||
else
|
||||
MESSAGE="${CUSTOM_DNS} Differenced"
|
||||
echo_info
|
||||
echo_warn
|
||||
HASHMARK=$((HASHMARK+1))
|
||||
fi
|
||||
else
|
||||
@ -791,11 +788,11 @@ function md5_compare {
|
||||
|
||||
if [ "$HASHMARK" != "0" ]
|
||||
then
|
||||
MESSAGE="Replication Necessary"
|
||||
echo_info
|
||||
MESSAGE="Replication Required"
|
||||
echo_warn
|
||||
HASHMARK=$((HASHMARK+0))
|
||||
else
|
||||
MESSAGE="Replication Unncessary"
|
||||
MESSAGE="No Changes to Replicate"
|
||||
echo_info
|
||||
exit_nochange
|
||||
fi
|
||||
@ -1126,7 +1123,7 @@ function echo_info {
|
||||
|
||||
## Warning
|
||||
function echo_warn {
|
||||
echo -e "${WARN} ${MESSAGE}"
|
||||
echo -e "${WARN} ${PURPLE}${MESSAGE}${NC}"
|
||||
}
|
||||
|
||||
## Executing
|
||||
|
Loading…
Reference in New Issue
Block a user