common_funcs.sh: add msg_*_nochroot funcs.
--HG-- extra : convert_revision : cd4750816d89848c7496b564536a56a86f2ab978
This commit is contained in:
parent
f8a7e8f595
commit
cf604ea6ca
1 changed files with 20 additions and 0 deletions
|
@ -72,6 +72,17 @@ msg_error()
|
|||
exit 1
|
||||
}
|
||||
|
||||
msg_error_nochroot()
|
||||
{
|
||||
[ -z "$1" ] && return 1
|
||||
|
||||
printf "\033[1m\033[31m"
|
||||
echo "=> ERROR: $1"
|
||||
printf "\033[m"
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
msg_warn()
|
||||
{
|
||||
[ -z "$1" ] && return 1
|
||||
|
@ -86,6 +97,15 @@ msg_warn()
|
|||
printf "\033[m"
|
||||
}
|
||||
|
||||
msg_warn_nochroot()
|
||||
{
|
||||
[ -z "$1" ] && return 1
|
||||
|
||||
printf "\033[1m\033[33m"
|
||||
echo "=> WARNING: $1"
|
||||
printf "\033[m"
|
||||
}
|
||||
|
||||
msg_normal()
|
||||
{
|
||||
[ -z "$1" ] && return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue