Gestion of spaces in paths for exclude list too.

This commit is contained in:
Zertrin 2012-05-10 20:39:14 +02:00
parent 37b35a499b
commit 5f0b38454c

View file

@ -136,8 +136,8 @@ EMAIL_TO=
EMAIL_FROM=
EMAIL_SUBJECT=
# command to use to send mail (uncomment to activate functionnality)
#MAIL="mailx"
# command to use to send mail
MAIL="mailx"
#MAIL="ssmtp"
# TROUBLESHOOTING: If you are having any problems running this script it is
@ -337,11 +337,13 @@ include_exclude()
TMP=" --include=""'"$include"'"
INCLUDE=$INCLUDE$TMP
done
for exclude in ${EXCLIST[@]}
do
TMP=" --exclude "$exclude
TMP=" --exclude ""'"$exclude"'"
EXCLUDE=$EXCLUDE$TMP
done
EXCLUDEROOT="--exclude=**"
# Restore IFS