| 1234567891011121314151617181920212223242526272829 | #!/bin/bashset -exscript/build-docspushd docs/_siteexport GIT_DIR=.git-gh-pagesexport GIT_WORK_TREE=.if [ ! -d "$GIT_DIR" ]; then  git initfiif !(git remote | grep origin); then  git remote add origin [email protected]:docker/fig.gitfigit fetch origingit reset --soft origin/gh-pagesecho ".git-gh-pages" > .gitignoregit add -A .git commit -m "update" || echo "didn't commit"git push origin master:gh-pagespopd
 |