2013-03-04 03:08:42 -05:00
|
|
|
plain() {
|
|
|
|
(( QUIET )) && return
|
|
|
|
local mesg=$1; shift
|
|
|
|
printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
|
|
|
|
}
|
|
|
|
|
2011-06-09 06:43:25 -04:00
|
|
|
msg() {
|
|
|
|
(( QUIET )) && return
|
|
|
|
local mesg=$1; shift
|
2013-03-04 03:08:42 -05:00
|
|
|
printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
|
2011-06-09 06:43:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
msg2() {
|
|
|
|
(( QUIET )) && return
|
|
|
|
local mesg=$1; shift
|
2013-03-04 03:08:42 -05:00
|
|
|
printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&1
|
2011-06-09 06:43:25 -04:00
|
|
|
}
|
|
|
|
|
2013-03-04 03:42:34 -05:00
|
|
|
ask() {
|
|
|
|
local mesg=$1; shift
|
|
|
|
printf "${BLUE}::${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&1
|
|
|
|
}
|
|
|
|
|
2011-06-09 06:43:25 -04:00
|
|
|
warning() {
|
|
|
|
local mesg=$1; shift
|
2013-03-04 03:08:42 -05:00
|
|
|
printf "${YELLOW}==> $(gettext "WARNING:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
|
2011-06-09 06:43:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
error() {
|
|
|
|
local mesg=$1; shift
|
2013-03-04 03:08:42 -05:00
|
|
|
printf "${RED}==> $(gettext "ERROR:")${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
|
|
|
|
}
|