diff --git a/assets/common.sh b/assets/common.sh index 2eadc38..9ffecc3 100644 --- a/assets/common.sh +++ b/assets/common.sh @@ -27,7 +27,7 @@ load_files() { # TODO: Remove Me - DEBUGGING echo "Files:" echo $files - for fileName in files; do + for fileName in "$files"; do local jq_path=".source.files.${fileName}" local content=$(jq -r "${jq_path}" < $1) echo "$content" > "/tmp/${fileName}" diff --git a/assets/out b/assets/out index fb4855f..d91c5ae 100644 --- a/assets/out +++ b/assets/out @@ -52,11 +52,12 @@ fi rclone_destination_subdir="" 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 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 "Target: ${rclone_target}"