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.
|
- Fix bug with `dropbearkey` not finding .ssh folder.
|
||||||
- Numerous fixes to accomidate DietPi in general.
|
- Numerous fixes to accomidate DietPi in general.
|
||||||
- Fixes issue where `compare` function would show changes where actually none existed.
|
- 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
|
#### 1.7.5
|
||||||
- No code changes!
|
- No code changes!
|
||||||
|
@ -725,9 +725,6 @@ function error_validate {
|
|||||||
|
|
||||||
## Validate Sync Required
|
## Validate Sync Required
|
||||||
function md5_compare {
|
function md5_compare {
|
||||||
# MESSAGE="Comparing ${GRAVITY_FI} Changes"
|
|
||||||
# echo_info
|
|
||||||
|
|
||||||
HASHMARK='0'
|
HASHMARK='0'
|
||||||
|
|
||||||
MESSAGE="Analyzing ${REMOTE_HOST} ${GRAVITY_FI}"
|
MESSAGE="Analyzing ${REMOTE_HOST} ${GRAVITY_FI}"
|
||||||
@ -747,7 +744,7 @@ function md5_compare {
|
|||||||
HASHMARK=$((HASHMARK+0))
|
HASHMARK=$((HASHMARK+0))
|
||||||
else
|
else
|
||||||
MESSAGE="${GRAVITY_FI} Differenced"
|
MESSAGE="${GRAVITY_FI} Differenced"
|
||||||
echo_info
|
echo_warn
|
||||||
HASHMARK=$((HASHMARK+1))
|
HASHMARK=$((HASHMARK+1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -776,7 +773,7 @@ function md5_compare {
|
|||||||
HASHMARK=$((HASHMARK+0))
|
HASHMARK=$((HASHMARK+0))
|
||||||
else
|
else
|
||||||
MESSAGE="${CUSTOM_DNS} Differenced"
|
MESSAGE="${CUSTOM_DNS} Differenced"
|
||||||
echo_info
|
echo_warn
|
||||||
HASHMARK=$((HASHMARK+1))
|
HASHMARK=$((HASHMARK+1))
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@ -791,11 +788,11 @@ function md5_compare {
|
|||||||
|
|
||||||
if [ "$HASHMARK" != "0" ]
|
if [ "$HASHMARK" != "0" ]
|
||||||
then
|
then
|
||||||
MESSAGE="Replication Necessary"
|
MESSAGE="Replication Required"
|
||||||
echo_info
|
echo_warn
|
||||||
HASHMARK=$((HASHMARK+0))
|
HASHMARK=$((HASHMARK+0))
|
||||||
else
|
else
|
||||||
MESSAGE="Replication Unncessary"
|
MESSAGE="No Changes to Replicate"
|
||||||
echo_info
|
echo_info
|
||||||
exit_nochange
|
exit_nochange
|
||||||
fi
|
fi
|
||||||
@ -1126,7 +1123,7 @@ function echo_info {
|
|||||||
|
|
||||||
## Warning
|
## Warning
|
||||||
function echo_warn {
|
function echo_warn {
|
||||||
echo -e "${WARN} ${MESSAGE}"
|
echo -e "${WARN} ${PURPLE}${MESSAGE}${NC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
## Executing
|
## Executing
|
||||||
|
Loading…
Reference in New Issue
Block a user