|
|
@ -34,6 +34,11 @@ rclone_destinations=$(jq -r '.params.destination[]? | .dir // ""' < "$payload") |
|
|
|
rclone_link_destination=$(jq -r '.params.linkDestination // ""' < "$payload") |
|
|
|
rclone_link_destination_subdir_file=$(jq -r '.params.linkDestinationSubDir // ""' < "$payload") |
|
|
|
|
|
|
|
echo "Source directory: ${rclone_source_directory}" |
|
|
|
echo "Link destination: ${rclone_link_destination}" |
|
|
|
echo "Link destination subdir file: ${rclone_link_destination_subdir_file}" |
|
|
|
|
|
|
|
|
|
|
|
if [[ -z "$rclone_source_directory" ]]; then |
|
|
|
echo "invalid source directory (missing source)" |
|
|
|
exit 1 |
|
|
|