summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ftpsync8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index be6e98a..f96e70d 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -106,7 +106,7 @@ EXCLUDE=${EXCLUDE:-""}
EXCLUDE="${EXCLUDE} --exclude .~tmp~/"
-SOURCE_EXCLUDE=
+SOURCE_EXCLUDE=${SOURCE_EXCLUDE:-""}
# Exclude architectures defined in $ARCH_EXCLUDE
for ARCH in ${ARCH_EXCLUDE}; do
EXCLUDE=${EXCLUDE}"\
@@ -120,12 +120,14 @@ for ARCH in ${ARCH_EXCLUDE}; do
--exclude *_${ARCH}.deb \
--exclude *_${ARCH}.udeb "
if [ "${ARCH}" = "source" ]; then
- SOURCE_EXCLUDE="\
+ if [ -z ${SOURCE_EXCLUDE} ]; then
+ SOURCE_EXCLUDE="\
--exclude source/ \
--exclude *.tar.gz \
--exclude *.diff.gz \
--exclude *.dsc "
- fi
+ fi
+ fi
done
# Some sane defaults