summaryrefslogtreecommitdiffstats
path: root/elchos/root-image/krebs/lib/color
blob: cec2044e32038103a796f79ed22c65ba3e79416c (plain)
1
2
3
4
5
6
7
# superseed logging with color
green='\e[0;32m'
red='\e[0;31m'
nc='\e[0m'
msg() { printf "$*\n" >&2; }
info()  { msg "$green$*$nc"; }
error() { msg "$green$*$nc"; }