Move --exclude-device-files to beginning of EXCLUDE variable

duplicity gives a warning when --exclude-device-files is not the first
selector in the exclude arguments. This commit moves the selector and
fixes the warning.

Minor spelling and space corrections
This commit is contained in:
Rob Miceli 2015-04-20 13:33:44 -04:00
parent 624e32be4b
commit 528cc41a7a

View file

@ -212,7 +212,7 @@ elif [ "$ENCRYPTION" = "no" ]; then
ENCRYPT="--no-encryption" ENCRYPT="--no-encryption"
fi fi
NO_S3CMD="WARNING: s3cmd no found in PATH, remote file \ NO_S3CMD="WARNING: s3cmd not found in PATH, remote file \
size information unavailable." size information unavailable."
NO_S3CMD_CFG="WARNING: s3cmd is not configured, run 's3cmd --configure' \ NO_S3CMD_CFG="WARNING: s3cmd is not configured, run 's3cmd --configure' \
in order to retrieve remote file size information. Remote file \ in order to retrieve remote file size information. Remote file \
@ -445,7 +445,7 @@ include_exclude()
# Exlcude device files? # Exlcude device files?
if [ ! -z $EXDEVICEFILES ] && [ $EXDEVICEFILES -ne 0 ]; then if [ ! -z $EXDEVICEFILES ] && [ $EXDEVICEFILES -ne 0 ]; then
TMP=" --exclude-device-files" TMP=" --exclude-device-files"
INCLUDE=$INCLUDE$TMP EXCLUDE=$EXCLUDE$TMP
fi fi
for include in ${INCLIST[@]} for include in ${INCLIST[@]}