From: Javier Fernández-Sanguino Date: Sun, 14 May 2017 13:03:51 +0000 (+0000) Subject: Fix call, we need to add a trailing backslash or the files will not be synced to... X-Git-Tag: 20180215~57 X-Git-Url: http://git.projectaon.org/?p=project-aon.git;a=commitdiff_plain;h=4aa21c8d60754942f7fed38384f82d4fbc07c0a2;hp=0d45bd1b68d97c335dc0554f88d13f5a384c024e;ds=sidebyside Fix call, we need to add a trailing backslash or the files will not be synced to the proper location git-svn-id: https://projectaon.org/data/trunk@2641 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11 --- diff --git a/es/rsync-ebooks-to-server.sh b/es/rsync-ebooks-to-server.sh index cf60c5b..0f5492e 100644 --- a/es/rsync-ebooks-to-server.sh +++ b/es/rsync-ebooks-to-server.sh @@ -24,13 +24,12 @@ for lang in $LANGS; do [ "$lang" = "en" ] && DIR=lw [ "$lang" = "es" ] && DIR=ls for type in $FORMATS; do - echo "Copying format ${type} in language ${lang}" - echo "Syncing files of type $f in language ${lang}" + echo "Syncing files of type ${type} in language ${lang}" SOURCEDIR="${lang}/${type}" - DESTDIR=$SOURCEDIR - COMPLETE_SOURCE_DIR="${ROOTSOURCEDIR}/${SOURCEDIR}" - COMPLETE_DEST_DIR="${ROOTDESTDIR}/${DESTDIR}" + DESTDIR="${lang}/${type}" + COMPLETE_SOURCE_DIR="${ROOTSOURCEDIR}/${SOURCEDIR}/" + COMPLETE_DEST_DIR="${ROOTDESTDIR}/${DESTDIR}/" echo "ORIGIN: ${COMPLETE_SOURCE_DIR}" echo "DESTINATION: ${DESTHOST}:${COMPLETE_DEST_DIR}" if [ ! -e "${COMPLETE_SOURCE_DIR}" ] || [ ! -d "${COMPLETE_SOURCE_DIR}" ] ; then