Skip to content
Snippets Groups Projects
Forked from it-lab / grade
Source project has a limited visibility.
copy.sh 335 B
#source
if [ -z $1 ] || ![ -d $1 ]
then
  s=~/grade-rating/
else
  s=$1
fi

#destination
if [ -z $2 ] || ![ -d $2 ]
then
  d=~/public_html/
else
  d=$2
fi

cd ${s}
git pull
cd ..

#shopt -s dotglob
# old copy       cp -rp ${s}~dev_rating/* $d
rsync -ru --exclude="java" ${s}~dev_rating/ $d/
cp ${s}~dev_rating/.htaccess ${d}/.htaccess