Skip to content

Commit

Permalink
Merge pull request docker#553 from spedersen-emailage/log-level-fix
Browse files Browse the repository at this point in the history
modified get_docker_configuration_file_args jq command to remove null response
  • Loading branch information
konstruktoid authored May 16, 2024
2 parents 2311026 + c4b7d36 commit 5c42b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/helper_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ get_docker_configuration_file_args() {
get_docker_configuration_file

if "$HAVE_JQ"; then
jq --monochrome-output --raw-output ".[\"${OPTION}\"]" "$CONFIG_FILE"
jq --monochrome-output --raw-output "if has(\"${OPTION}\") then .[\"${OPTION}\"] else \"\" end" "$CONFIG_FILE"
else
cat "$CONFIG_FILE" | tr , '\n' | grep "$OPTION" | sed 's/.*://g' | tr -d '" ',
fi
Expand Down

0 comments on commit 5c42b8a

Please sign in to comment.