mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-07-24 20:07:50 +00:00
First version of the CIS Docker Benchmark v1.0.0
This commit is contained in:
parent
487307834f
commit
18d5a13240
13 changed files with 1545 additions and 0 deletions
25
output_lib.sh
Normal file
25
output_lib.sh
Normal file
|
@ -0,0 +1,25 @@
|
|||
bldred='\033[1;31m'
|
||||
bldgrn='\033[1;32m'
|
||||
bldblu='\033[1;34m'
|
||||
bldylw='\033[1;33m' # Yellow
|
||||
txtrst='\033[0m'
|
||||
|
||||
logit () {
|
||||
printf "$1\n" | tee -a $logger
|
||||
}
|
||||
|
||||
info () {
|
||||
printf '%b' "${bldblu}[INFO]${txtrst} $1\n" | tee -a $logger
|
||||
}
|
||||
|
||||
pass () {
|
||||
printf '%b' "${bldgrn}[PASS]${txtrst} $1\n" | tee -a $logger
|
||||
}
|
||||
|
||||
warn () {
|
||||
printf '%b' "${bldred}[WARN]${txtrst} $1\n" | tee -a $logger
|
||||
}
|
||||
|
||||
yell () {
|
||||
printf '%b' "${bldylw}$1${txtrst}\n"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue