mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 08:42:33 +01:00
Compare commits
No commits in common. "5c42b8ad5f367e2988b9889171e9ec4f11f446e0" and "23110269a63081cafddaff0f6fde7951e4e8a17c" have entirely different histories.
5c42b8ad5f
...
23110269a6
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ get_docker_configuration_file_args() {
|
|||
get_docker_configuration_file
|
||||
|
||||
if "$HAVE_JQ"; then
|
||||
jq --monochrome-output --raw-output "if has(\"${OPTION}\") then .[\"${OPTION}\"] else \"\" end" "$CONFIG_FILE"
|
||||
jq --monochrome-output --raw-output ".[\"${OPTION}\"]" "$CONFIG_FILE"
|
||||
else
|
||||
cat "$CONFIG_FILE" | tr , '\n' | grep "$OPTION" | sed 's/.*://g' | tr -d '" ',
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue