1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
msg() { (( QUIET )) && return local mesg=$1; shift printf "==> ${mesg}\n" "$@" >&1 } msg2() { (( QUIET )) && return local mesg=$1; shift printf " -> ${mesg}\n" "$@" >&1 } warning() { local mesg=$1; shift printf "==> $(gettext "WARNING:") ${mesg}\n" "$@" >&2 } error() { local mesg=$1; shift printf "==> $(gettext "ERROR:") ${mesg}\n" "$@" >&2 }