mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -05:00
21 lines
358 B
Bash
21 lines
358 B
Bash
|
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
|
||
|
}
|