mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
add integer for json logging
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
8424b0a6ba
commit
a7600dd539
1 changed files with 4 additions and 0 deletions
|
@ -40,3 +40,7 @@ endjson (){
|
||||||
logjson (){
|
logjson (){
|
||||||
printf "\n \"%s\": \"%s\"," "$1" "$2" | tee -a "$logger.json" 2>/dev/null 1>&2
|
printf "\n \"%s\": \"%s\"," "$1" "$2" | tee -a "$logger.json" 2>/dev/null 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
integerjson (){
|
||||||
|
printf "\n \"%s\": %s," "$1" "$2" | tee -a "$logger.json" 2>/dev/null 1>&2
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue