mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-24 20:11:59 +01:00
Make errors and warnings a bit more obvious.
Review URL: http://codereview.chromium.org/1342001
This commit is contained in:
parent
2cdc823b96
commit
b2a21e7ecf
@ -280,13 +280,15 @@ function check_flags_only_and_allow_null_arg {
|
|||||||
|
|
||||||
V_RED="\e[31m"
|
V_RED="\e[31m"
|
||||||
V_YELLOW="\e[33m"
|
V_YELLOW="\e[33m"
|
||||||
|
V_BOLD_RED="\e[1;31m"
|
||||||
|
V_BOLD_YELLOW="\e[1;33m"
|
||||||
|
|
||||||
function warn {
|
function warn {
|
||||||
echo -e "${V_YELLOW}Warning..: $1${V_VIDOFF}"
|
echo -e "${V_BOLD_YELLOW}WARNING: $1${V_VIDOFF}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function error {
|
function error {
|
||||||
echo -e "${V_RED}Error....: $1${V_VIDOFF}"
|
echo -e "${V_BOLD_RED}ERROR : $1${V_VIDOFF}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function die {
|
function die {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user