common/xbps-src/shutils: add function for printing verbose messages

This commit is contained in:
classabbyamp 2024-02-10 01:47:06 -05:00 committed by classabbyamp
parent bdf562aa27
commit b3c54d73af
2 changed files with 17 additions and 22 deletions

View file

@ -188,6 +188,12 @@ msg_normal() {
fi
}
msg_verbose() {
if [ -n "$XBPS_VERBOSE" ]; then
printf >&2 "$@"
fi
}
report_broken() {
if [ "$show_problems" = "ignore-problems" ]; then
return