Use rsync in push script to avoid differing 'cp' behavior on OSX/Linux
This commit is contained in:
parent
9c22ea2511
commit
63e4f28f60
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue