template 501 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. if [ -d "./bin" ]; then
  3. echo "Error: The current directory is not empty. Please remove all contents within this directory and try again."
  4. exit 1
  5. fi
  6. git init -qqq
  7. git remote add origin https://github.com/markshust/docker-magento
  8. git fetch origin -qqq
  9. git checkout origin/master -- compose
  10. mv compose/* ./
  11. mv compose/.gitignore ./
  12. mv compose/.vscode ./
  13. rm -rf compose .git
  14. git init
  15. # Ensure these are created so Docker doesn't create them as root
  16. mkdir -p ~/.composer ~/.ssh