summaryrefslogtreecommitdiff
path: root/bin/ftpsync
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ftpsync')
-rwxr-xr-xbin/ftpsync4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 5b0a894..0799645 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -83,8 +83,8 @@ EXCLUDE=${EXCLUDE:-""}
EXCLUDE="${EXCLUDE} --exclude .~tmp~/"
# Check for some environment variables
-if [ -z "${TO}" ] || [ -z "${RSYNC_HOST}" ] || [ -z "${FROM}" ]; then
- error "One of the TO, RSYNC_HOST or FROM variables seems to be empty"
+if [ -z "${TO}" ] || [ -z "${RSYNC_HOST}" ] || [ -z "${RSYNC_PATH}" ]; then
+ error "One of the TO, RSYNC_HOST or RSYNC_PATH variables seems to be empty"
exit 2
fi