diff scritps/d4e-website-loader.sh @ 37:265e1a46de07

rsync with hidden files
author Mathias Gebbe <mgebbe@intevation.de>
date Wed, 05 Mar 2014 16:49:25 +0100
parents c66f4b393d15
children
line wrap: on
line diff
--- 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@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@wald.intevation.org:/$PROJECT/htdocs/"
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)