Browse Source

Improve logging

expose_links
Drew Short 5 years ago
parent
commit
c9e0338313
  1. 7
      assets/common.sh

7
assets/common.sh

@ -25,16 +25,15 @@ load_files() {
files=$(jq -r '.source.files? | keys? | join(" ") // ""' < "$1") files=$(jq -r '.source.files? | keys? | join(" ") // ""' < "$1")
set -e set -e
# TODO: Remove Me - DEBUGGING
echo "Files:"
echo "$files"
if [[ -n "${files}" ]]; then if [[ -n "${files}" ]]; then
for fileName in $files; do for fileName in $files; do
local jq_path local jq_path
local content local content
jq_path=".source.files.${fileName}" jq_path=".source.files.${fileName}"
content=$(jq -r "${jq_path}" < "$1") content=$(jq -r "${jq_path}" < "$1")
echo "$content" > "/tmp/${fileName}"
echo "$content" > "${TMPDIR}/${fileName}"
echo "Wrote: ${TMPDIR}/${fileName}"
done done
ls -alh "${TMPDIR}"
fi fi
} }
Loading…
Cancel
Save