From 6a4c52360af31ca0ef2ae10c9692e1d3ad402a3c Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 22 Oct 2008 00:47:07 +0200 Subject: ftpsync now, check if we know the configfile. Signed-off-by: Joerg Jaspert --- bin/ftpsync | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 # -- cgit v1.2.3