summaryrefslogtreecommitdiff
path: root/bin/ftpsync
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ftpsync')
-rwxr-xr-xbin/ftpsync7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 968394c..90f5b9b 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -168,7 +168,12 @@ fi
# Now source the config for the archive we run on.
# (Yes, people can also overwrite the options above in the config file
# if they want to)
-. "${BASEDIR}/etc/${NAME}.conf"
+if [-f "${BASEDIR}/etc/${NAME}.conf" ]; then
+ . "${BASEDIR}/etc/${NAME}.conf"
+else
+ echo "Nono, you can't tell us about random archives. Bad boy!"
+ exit 1
+fi
########################################################################
# Config options go here. Feel free to overwrite them in the config #