Use rsync in push script to avoid differing 'cp' behavior on OSX/Linux

This commit is contained in:
Jeff Mitchell 2015-10-06 12:15:25 -04:00
parent 9c22ea2511
commit 63e4f28f60
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Copy into tmpdir
cp -R $DIR/website/ $DEPLOY/
rsync -avP $DIR/website/ $DEPLOY/
# Change into that directory
pushd $DEPLOY &>/dev/null