dt-s3-backup
dt-s3-backup copied to clipboard
INCLIST & EXCLIST fail when a space is present
Currently the array is handled in such a way that it is separating items by spaces, not by the quotes ... that's because we are using:
for a in ${ARRAY[@]}; do echo ${a}; done
What we need to do is:
for a in ${!ARRAY[*]}; do echo ${ARRAY[a]}; done
This probably exists in a couple places in the code.
Examples: http://www.linuxjournal.com/content/bash-arrays