2
0

template 500 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. git init -qqq
  3. git remote add origin https://github.com/markshust/docker-magento
  4. git fetch origin -qqq
  5. git checkout origin/master -- compose
  6. if [ -d "./bin" ]; then
  7. echo "Error: The current directory is not empty. Please remove all contents within this directory and try again."
  8. exit 1
  9. fi
  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