From 7b52982ca4d45a22881a805f7af6fe5a3ddeedb9 Mon Sep 17 00:00:00 2001 From: Nitin Mathew Date: Fri, 3 Jan 2014 10:32:18 +0800 Subject: [PATCH] Changed the delimiter for path in config to comma 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 --- idrive-wrapper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/idrive-wrapper.sh b/idrive-wrapper.sh index 23e2b3e..6aa4b16 100755 --- a/idrive-wrapper.sh +++ b/idrive-wrapper.sh @@ -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 @@ -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