From 9590e5fd9b48b66653b2a0f7f36f31d41933b1af Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 16 Oct 2010 00:38:54 -0500 Subject: [PATCH] script/lib/log: add commonly used aliases for log functions --- script/lib/log.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/lib/log.sh b/script/lib/log.sh index 429f428..690f125 100644 --- a/script/lib/log.sh +++ b/script/lib/log.sh @@ -23,12 +23,14 @@ then echo "${*}" [ -n "${_log_to_stderr}" ] && echo "* log: ${*}" >&2 } + alias meh=log warn() { printf " ${a_yellow}*${a_normal} " echo "${*}" [ -n "${_log_to_stderr}" ] && echo "* warn: ${*}" >&2 } + alias omg=warn err() { printf " ${a_red}*${a_normal} " @@ -36,6 +38,7 @@ then [ -n "${_log_to_stderr}" ] && echo "* err: ${*}" >&2 exit 1 } + alias wtf=err chk() { _res=$? -- 2.45.0