Add a sandbox pull command

This commit is contained in:
Jason Crist 2021-06-09 13:08:26 -04:00
parent cf614afd75
commit 0fe5dd04b1
3 changed files with 14 additions and 3 deletions

11
.gitignore vendored
View file

@ -13,10 +13,10 @@ vendor/
.sandbox-config
.wp-env.override.json
#Ignoring headstart and language files
#Ignoring headstart files
*/inc/headstart/*
*/languages/*
!*/languages/*.pot
*/inc/headstart/*
#Retired themes we do not track in git
able/
@ -210,13 +210,16 @@ origin/
orvis/
oulipo/
oxygen/
p2-breathe/
p2/
p2-breathe/
p2-hub/
p2020/
pachyderm/
panel/
paperpunch/
parament/
partner-annotum-base/
partner-annotum-sans/
penscratch/
piano-black/
pictorico/
@ -308,6 +311,7 @@ treba/
triton-lite/
truly-minimal/
trvl/
tt1-blocks/
twenty-eight/
twentyeleven/
twentyfifteen/
@ -319,6 +323,7 @@ twentyten/
twentythirteen/
twentytwelve/
twentytwenty/
twentytwentyone/
twentytwentyone-blocks/
typo/
under-the-influence/

View file

@ -3,6 +3,7 @@
.gitignore
.sandbox-config
.sandbox-ignore
.svn
package-lock.json
sandbox.sh
vendor

View file

@ -38,6 +38,11 @@ ssh -T $SANDBOX_USER@$SANDBOX_LOCATION << EOF
svn up;
EOF
elif [[ $1 == "pull" ]]; then
cmd="rsync -av --no-p --no-times --exclude-from='.sandbox-ignore' --exclude=$ignore_string $SANDBOX_USER@$SANDBOX_LOCATION:$SANDBOX_PUBLIC_THEMES_FOLDER/ ./ "
eval $cmd
elif [[ $1 == "push" ]]; then
git remote update