Skip to content

Commit

Permalink
Changed the delimiter for path in config to comma
Browse files Browse the repository at this point in the history
The path dleimiter for -g option is comma as semi-colon causes issues in
parsing from command line. To have consistency the delimiter for the
config files have also been changed to comma. Linux filenames can have
comma in them but is generally not used.
Changed for upload list, delete list and upload list again during acl
backup
  • Loading branch information
nsmathew committed Jan 3, 2014
1 parent a6974d9 commit 7b52982
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions idrive-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ read_config_init(){
#UPLOAD/DELETE FILEISTS
FILELIST_UPLOAD=${WORKDIR}/${USERID}_UPLOAD
FILELIST_DELETE=${WORKDIR}/${USERID}-DELETE
grep "${c_uploadlist}" "${CONFIG}" | cut -d'=' -f 2 -s | tr ';' '\n' | while read PTH; do
grep "${c_uploadlist}" "${CONFIG}" | cut -d'=' -f 2 -s | tr ',' '\n' | while read PTH; do
if [ "${PTH}" = "" ] ; then
continue
fi
echo "${PTH}" >> ${FILELIST_UPLOAD}
done
PTH=""
grep "${c_deletelist}" "${CONFIG}" | cut -d'=' -f 2 | tr ';' '\n' | while read PTH; do
grep "${c_deletelist}" "${CONFIG}" | cut -d'=' -f 2 | tr ',' '\n' | while read PTH; do
if [ "${PTH}" = "" ] ; then
continue
fi
Expand Down Expand Up @@ -263,7 +263,7 @@ backup_ACL(){
return
fi
filename="${ACL_BACKUP%/}"/idrive-acls-${TIMESTMP}.txt
grep "${c_uploadlist}" "${CONFIG}" | cut -d'=' -f 2 -s | tr ';' '\n' | while read PTH; do
grep "${c_uploadlist}" "${CONFIG}" | cut -d'=' -f 2 -s | tr ',' '\n' | while read PTH; do
if [ "${PTH}" = "" ] ; then
continue
fi
Expand Down

0 comments on commit 7b52982

Please sign in to comment.