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 2b1ddc4a7b
commit 9dc8f3a164

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