build: log red text for error message
This commit is contained in:
parent
855b3c5b29
commit
1d77d07774
|
@ -4,6 +4,12 @@ set -euo pipefail
|
||||||
# ensure dir
|
# ensure dir
|
||||||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
|
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
|
||||||
|
|
||||||
|
log_red() {
|
||||||
|
local RED='\033[0;31m' # Red
|
||||||
|
local NC='\033[0m' # No Color
|
||||||
|
echo -e "${RED}${1}${NC}"
|
||||||
|
}
|
||||||
|
|
||||||
# match any official release tag 'e*' and 'v*'
|
# match any official release tag 'e*' and 'v*'
|
||||||
latest_release="$(env PREV_TAG_MATCH_PATTERN='*' ./scripts/find-prev-rel-tag.sh)"
|
latest_release="$(env PREV_TAG_MATCH_PATTERN='*' ./scripts/find-prev-rel-tag.sh)"
|
||||||
echo "Version check compare base: $latest_release"
|
echo "Version check compare base: $latest_release"
|
||||||
|
@ -47,7 +53,7 @@ for app in ${APPS}; do
|
||||||
-- "$app_path/priv" \
|
-- "$app_path/priv" \
|
||||||
-- "$app_path/c_src" | wc -l ) "
|
-- "$app_path/c_src" | wc -l ) "
|
||||||
if [ "$changed_lines" -gt 0 ]; then
|
if [ "$changed_lines" -gt 0 ]; then
|
||||||
echo "ERROR: $src_file needs a vsn bump"
|
log_red "ERROR: $src_file needs a vsn bump"
|
||||||
bad_app_count=$(( bad_app_count + 1))
|
bad_app_count=$(( bad_app_count + 1))
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue