Skip to content

Commit

Permalink
modified get_docker_configuration_file_args jq command to remove \'nu…
Browse files Browse the repository at this point in the history
…ll\' return
  • Loading branch information
spedersen-emailage committed May 15, 2024
1 parent 2311026 commit c4b7d36
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 c4b7d36

Please sign in to comment.