]> source.dussan.org Git - archiva.git/commitdiff
Fixed problems with variables
authorCarlos Sanchez Gonzalez <carlos@apache.org>
Thu, 24 Aug 2006 18:00:38 +0000 (18:00 +0000)
committerCarlos Sanchez Gonzalez <carlos@apache.org>
Thu, 24 Aug 2006 18:00:38 +0000 (18:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@434451 13f79535-47bb-0310-9956-ffa450edef68

maven-meeper/src/bin/m2-sync/m2-sync.sh

index 709c5d15d486f4cd0344c64d67e6a5ed7fe5aeee..a2cdfbb48ca679357acc17e35c6c74e14a798e6c 100755 (executable)
@@ -36,18 +36,18 @@ for f in `find conf -iname "*.sh"`
   then
     if [ -z $SSH_OPTS ]
     then
-      RSYNC_SSH="-ssh"
+      RSYNC_SSH="--rsh=ssh"
     else
-      RSYNC_SSH="-e \"ssh $SSH_OPTS\""
+      RSYNC_SSH="--rsh=ssh $SSH_OPTS"
     fi
   fi
 
   echo "Syncing $FROM -> $TO"
-  rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz $RSYNC_SSH $FROM $BASEDIR/$TO
-  rsync --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz $RSYNC_SSH $FROM $BASEDIR/$TO
+  rsync --include=*/ --include=**/maven-metadata.xml* --exclude=* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
+  rsync --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --ignore-existing $RSYNC_OPTS -Lrtivz "$RSYNC_SSH" $FROM $BASEDIR/$TO
 
   # check for changed files
-  rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc $RSYNC_SSH $FROM $BASEDIR/$TO >> $CHANGED_LOG
+  rsync -n --exclude=**/maven-metadata.xml* --exclude-from=$HOME/components/maven-meeper/src/bin/syncopate/exclusions.txt --existing $RSYNC_OPTS -Lrtivzc "$RSYNC_SSH" $FROM $BASEDIR/$TO >> $CHANGED_LOG
 
 done