| # @purpose Writer tool | |
| # @description Clone the docs-early-access repo | |
| set -e | |
| # Go up a directory | |
| pushd .. > /dev/null | |
| if [ -d "docs-early-access" ]; then | |
| echo "A 'docs-early-access' directory already exists!" | |
| popd > /dev/null | |
| exit 0 | |
| fi | |
| # Clone the repo | |
| git clone https://github.com/github/docs-early-access.git | |
| # Go back to the previous working directory | |
| popd > /dev/null | |
| # Symlink the local docs-early-access repo into this repo | |
| npm run symlink-from-local-repo -- -p ../docs-early-access | |
| echo -e '\nDone!' | |