mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-10-28 08:38:58 +00:00
add option -m to disable colors in output
Signed-off-by: Mr. Secure <ben.github@mrsecure.org>
This commit is contained in:
parent
5bf3e2894c
commit
94adb3eca9
2 changed files with 33 additions and 2 deletions
26
textout_lib.sh
Normal file
26
textout_lib.sh
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/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"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue