docker-bench-security/textout_lib.sh
Ben Allen f7ed071b89 add option -m to disable colors in output
Signed-off-by: Mr. Secure <ben.github@mrsecure.org>
2016-10-05 15:55:40 -05:00

26 lines
402 B
Bash

#!/bin/sh
bldred=''
bldgrn=''
bldblu=''
bldylw=''
txtrst=''
logit () {
printf "%b\n" "$1" | tee -a "$logger"
}
info () {
printf "%b\n" "${bldblu}[INFO]${txtrst} $1" | tee -a "$logger"
}
pass () {
printf "%b\n" "${bldgrn}[PASS]${txtrst} $1" | tee -a "$logger"
}
warn () {
printf "%b\n" "${bldred}[WARN]${txtrst} $1" | tee -a "$logger"
}
yell () {
printf "%b\n" "${bldylw}$1${txtrst}\n"
}