From f5025d5c975531a6b2055b86187b43a6d3c3f93e Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 22 Jan 2020 14:30:43 -0600 Subject: [PATCH] Used jq optional notation --- assets/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/common.sh b/assets/common.sh index 73a5dcb..2eadc38 100644 --- a/assets/common.sh +++ b/assets/common.sh @@ -22,7 +22,7 @@ load_config() { load_files() { set +e - local files=$(jq -r '.source.files | keys | join(" ") // ""' < $1) 2> /dev/null + local files=$(jq -r '.source.files? | keys? | join(" ") // ""' < $1) set -e # TODO: Remove Me - DEBUGGING echo "Files:"