[PATCH] rsync with hidden files

Wald Commits scm-commit at wald.intevation.org
Wed Mar 5 16:49:32 CET 2014


# HG changeset patch
# User Mathias Gebbe <mgebbe at intevation.de>
# Date 1394034565 -3600
# Node ID 265e1a46de074090364b107db24cfb52849c0c56
# Parent  eea27e51e4824eaeeb84914ba8b03aa3ceb4650a
rsync with hidden files

diff -r eea27e51e482 -r 265e1a46de07 scritps/d4e-website-loader.sh
--- a/scritps/d4e-website-loader.sh	Wed Mar 05 09:20:18 2014 +0100
+++ b/scritps/d4e-website-loader.sh	Wed Mar 05 16:49:25 2014 +0100
@@ -48,14 +48,15 @@
 fi
 
 if [ -z $destination ];then
- echo "Destination (hit enter for current directory `pwd` [should be an empty directory]):"
+ echo "Destination (hit enter for current directory `pwd`/ [should be an empty directory]):"
  read destination
   if [ -z $destination ];then
-   destination=`pwd`
+   destination=`pwd`+/
   fi
 fi
 
+mkdir -p $destination
 hg clone ssh://$username@scm.wald.intevation.org/hg/dive4elements/website/ $destination
 
 echo "run the following command to upload the website from repository"
-echo "rsync -rvPC --perms --chmod=ug+rw,o+r,Dg+s,Da+x,u-s,Fg-s,o-wt --exclude '*.swp' --delete $destination/* $username at wald.intevation.org:/$PROJECT/htdocs/"
+echo "rsync -rvPC --perms --chmod=ug+rw,o+r,Dg+s,Da+x,u-s,Fg-s,o-wt --exclude '*.swp' --delete $destination $username at wald.intevation.org:/$PROJECT/htdocs/"


More information about the Dive4elements-commits mailing list