Browse Source

Updated to use the correct array of files

expose_links
Drew Short 5 years ago
parent
commit
783cc8425e
  1. 2
      assets/common.sh
  2. 5
      assets/out

2
assets/common.sh

@ -27,7 +27,7 @@ load_files() {
# TODO: Remove Me - DEBUGGING # TODO: Remove Me - DEBUGGING
echo "Files:" echo "Files:"
echo $files echo $files
for fileName in files; do
for fileName in "$files"; do
local jq_path=".source.files.${fileName}" local jq_path=".source.files.${fileName}"
local content=$(jq -r "${jq_path}" < $1) local content=$(jq -r "${jq_path}" < $1)
echo "$content" > "/tmp/${fileName}" echo "$content" > "/tmp/${fileName}"

5
assets/out

@ -52,11 +52,12 @@ fi
rclone_destination_subdir="" rclone_destination_subdir=""
if [ ! -z "$rclone_destination_subdir_file" ]; then if [ ! -z "$rclone_destination_subdir_file" ]; then
rclone_destination_subdir=$(cat "${source}${rclone_destination_subdir}")
echo "Looking in ${source}/${rclone_destination_subdir} for subdir to use"
rclone_destination_subdir=$(cat "${source}/${rclone_destination_subdir}")
fi fi
rclone_source="local:${source}/${rclone_source_directory}" rclone_source="local:${source}/${rclone_source_directory}"
rclone_target="${rclone_destination}${rclone_destination_subdir}"
rclone_target="${rclone_destination}/${rclone_destination_subdir}"
echo "Source: ${rclone_source}" echo "Source: ${rclone_source}"
echo "Target: ${rclone_target}" echo "Target: ${rclone_target}"

Loading…
Cancel
Save