From c4b7d36042fc7141a432b8b30dae26dad32e8ba8 Mon Sep 17 00:00:00 2001 From: Sean Pedersen <92553912+spedersen-emailage@users.noreply.github.com> Date: Wed, 15 May 2024 10:21:02 -0700 Subject: [PATCH] modified get_docker_configuration_file_args jq command to remove \'null\' return --- functions/helper_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/helper_lib.sh b/functions/helper_lib.sh index 740fdcf..d8b8f46 100644 --- a/functions/helper_lib.sh +++ b/functions/helper_lib.sh @@ -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