summaryrefslogtreecommitdiff
path: root/dumps
diff options
context:
space:
mode:
Diffstat (limited to 'dumps')
-rwxr-xr-xdumps/fetch-dropbox.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/dumps/fetch-dropbox.sh b/dumps/fetch-dropbox.sh
index 99db29e..2498be5 100755
--- a/dumps/fetch-dropbox.sh
+++ b/dumps/fetch-dropbox.sh
@@ -1,3 +1,8 @@
#!/bin/bash
-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
+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