Util : Replace stdout echo with proper stderr newlines.
This commit is contained in:
parent
1ac09775e6
commit
3859048c4d
|
@ -47,19 +47,19 @@ function _iterate_targets() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add newline if not the last one.
|
# Add newline if not the last one.
|
||||||
[[ "${count}" = "${total}" ]] || echo
|
[[ "${count}" = "${total}" ]] || _info
|
||||||
done
|
done
|
||||||
|
|
||||||
# Show skipped.
|
# Show skipped.
|
||||||
if [[ ${skipped} != 0 ]]; then
|
if [[ ${skipped} != 0 ]]; then
|
||||||
echo
|
_warn
|
||||||
echo -e "${color_byellow}Skipped: ${skipped}.${color_default}"
|
_warn "${color_byellow}Skipped: ${skipped}.${color_default}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Show error.
|
# Show error.
|
||||||
if [[ ${failed} != 0 ]]; then
|
if [[ ${failed} != 0 ]]; then
|
||||||
[[ "${skipped}" = 0 ]] && echo
|
[[ "${skipped}" = 0 ]] && _error
|
||||||
echo -e "${color_bred}Failed: ${failed}.${color_default}"
|
_error "${color_bred}Failed: ${failed}.${color_default}"
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ function _iterate_targets() {
|
||||||
function _iterate_skip() {
|
function _iterate_skip() {
|
||||||
((skipped++))
|
((skipped++))
|
||||||
|
|
||||||
[[ "${*}" != "" ]] && echo -e "${color_byellow}${*}${color_default}"
|
[[ "${*}" != "" ]] && _warn "${color_byellow}${*}${color_default}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Report an error.
|
# Report an error.
|
||||||
|
|
Loading…
Reference in a new issue