#!/bin/bash if [ -z ${LIGA_DROPBOX_DUMP_FOLDER+x} ] then echo 'Dropbox dump not configured, skipping' else dbxcli ls -l "${LIGA_DROPBOX_DUMP_FOLDER}" | awk -F"ago" '{print $2}' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | xargs -I{} dbxcli get {} dumps/sync fi